Commit 3e56f1d
committed
user_topics: Treat invalid visibility_policy values as null
Previously, UserTopicVisibilityPolicy included an .unknown value to
represent unexpected server values.
This change removes that value and instead invalid or missing
visibility_policy values deserialize as null. Did the same for UserTopicItem.visibilityPolicy, so unknown/missing values in the initial snapshot user_topics data are represented as null.handleUserTopicEvent- For events with visibilityPolicy == null, removed any existing entry for that topic and dropped the per‑stream map if it becomes empty.Tests added
Fixes #10741 parent 89f6663 commit 3e56f1d
File tree
18 files changed
+217
-80
lines changed- lib
- api
- model
- route
- model
- widgets
- test
- api
- model
- route
- model
18 files changed
+217
-80
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1051 | 1051 | | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | | - | |
| 1054 | + | |
| 1055 | + | |
1055 | 1056 | | |
1056 | 1057 | | |
1057 | 1058 | | |
| |||
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 | |
|---|---|---|---|
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | | - | |
| 373 | + | |
| 374 | + | |
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| |||
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 | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | | - | |
| 902 | + | |
| 903 | + | |
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
| |||
118 | 128 | | |
119 | 129 | | |
120 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
121 | 136 | | |
122 | 137 | | |
123 | | - | |
| 138 | + | |
124 | 139 | | |
125 | 140 | | |
126 | 141 | | |
| |||
132 | 147 | | |
133 | 148 | | |
134 | 149 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 150 | | |
139 | 151 | | |
140 | 152 | | |
| |||
155 | 167 | | |
156 | 168 | | |
157 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
158 | 175 | | |
159 | 176 | | |
160 | | - | |
| 177 | + | |
161 | 178 | | |
162 | 179 | | |
163 | 180 | | |
| |||
173 | 190 | | |
174 | 191 | | |
175 | 192 | | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | 193 | | |
180 | 194 | | |
181 | 195 | | |
| |||
332 | 346 | | |
333 | 347 | | |
334 | 348 | | |
335 | | - | |
336 | | - | |
| 349 | + | |
| 350 | + | |
337 | 351 | | |
338 | 352 | | |
| 353 | + | |
339 | 354 | | |
340 | | - | |
| 355 | + | |
341 | 356 | | |
342 | 357 | | |
343 | 358 | | |
| |||
378 | 393 | | |
379 | 394 | | |
380 | 395 | | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | 396 | | |
389 | 397 | | |
390 | 398 | | |
| |||
558 | 566 | | |
559 | 567 | | |
560 | 568 | | |
561 | | - | |
562 | | - | |
563 | | - | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
564 | 578 | | |
565 | | - | |
566 | | - | |
567 | | - | |
| 579 | + | |
| 580 | + | |
568 | 581 | | |
569 | 582 | | |
570 | 583 | | |
| |||
573 | 586 | | |
574 | 587 | | |
575 | 588 | | |
576 | | - | |
| 589 | + | |
577 | 590 | | |
578 | 591 | | |
579 | 592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | 728 | | |
733 | 729 | | |
734 | 730 | | |
| |||
750 | 746 | | |
751 | 747 | | |
752 | 748 | | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | 749 | | |
758 | 750 | | |
759 | 751 | | |
| |||
824 | 816 | | |
825 | 817 | | |
826 | 818 | | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | 819 | | |
833 | 820 | | |
834 | 821 | | |
| |||
855 | 842 | | |
856 | 843 | | |
857 | 844 | | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | | - | |
863 | 845 | | |
864 | 846 | | |
865 | 847 | | |
| |||
885 | 867 | | |
886 | 868 | | |
887 | 869 | | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | 870 | | |
894 | 871 | | |
895 | 872 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 229 | | |
235 | 230 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | 250 | | |
254 | 251 | | |
255 | 252 | | |
| |||
0 commit comments