Commit ad55496
api: Explicitly ignore topics on DMs
The topic/subject field on DMs carries no information in the current
API, and we already never actually look at it, as demonstrated by
the lack of changes in the rest of the tree in this commit. Clean
up the type definitions in the API a bit by making that explicit.
This is NFC except in the case where a server were to not send this
field at all for a DM (or to send a non-string value). In that case
the old code would reject the server's response as malformed, and
the new code after this commit would accept it because it doesn't
look for the field.1 parent 531af69 commit ad55496
File tree
5 files changed
+17
-11
lines changed- lib
- api/model
- widgets
- test/api/model
5 files changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
560 | | - | |
| 559 | + | |
561 | 560 | | |
562 | 561 | | |
563 | 562 | | |
| 563 | + | |
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | 616 | | |
618 | 617 | | |
619 | 618 | | |
| |||
667 | 666 | | |
668 | 667 | | |
669 | 668 | | |
| 669 | + | |
670 | 670 | | |
671 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
672 | 679 | | |
673 | 680 | | |
674 | 681 | | |
| |||
683 | 690 | | |
684 | 691 | | |
685 | 692 | | |
686 | | - | |
687 | 693 | | |
688 | 694 | | |
689 | 695 | | |
690 | 696 | | |
691 | 697 | | |
692 | 698 | | |
| 699 | + | |
693 | 700 | | |
694 | 701 | | |
695 | 702 | | |
| |||
786 | 793 | | |
787 | 794 | | |
788 | 795 | | |
789 | | - | |
790 | 796 | | |
791 | 797 | | |
792 | 798 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
633 | 633 | | |
634 | 634 | | |
635 | 635 | | |
| 636 | + | |
636 | 637 | | |
637 | 638 | | |
638 | 639 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
0 commit comments