Commit 72e3d61
committed
fix: fix parsing of non-JSON messages
This commit fixes the parsing of messages that aren't JSON-formatted.
In specific, any non-JSON-formatted message that happened to contain the
string `"attachments"` or `"text"` was incorrectly treated as a
dictionary, and failed to parse.
This commit also makes the typing a little stricter.1 parent 4643a62 commit 72e3d61
File tree
3 files changed
+7
-12
lines changed- functions
- messages
- snapshots
3 files changed
+7
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
574 | 574 | | |
575 | 575 | | |
576 | 576 | | |
577 | | - | |
| 577 | + | |
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
623 | 622 | | |
624 | 623 | | |
625 | 624 | | |
626 | 625 | | |
627 | 626 | | |
628 | 627 | | |
629 | 628 | | |
630 | | - | |
631 | | - | |
632 | | - | |
| 629 | + | |
| 630 | + | |
633 | 631 | | |
634 | 632 | | |
635 | | - | |
636 | | - | |
637 | | - | |
638 | | - | |
| 633 | + | |
639 | 634 | | |
640 | 635 | | |
641 | 636 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
648 | | - | |
| 648 | + | |
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
| |||
0 commit comments