Commit 9f560fa
committed
api: Allow SubscriptionUpdateEvent with unrecognized property
Our event poll shouldn't crash on subscription/update events about
data that we don't store and act on. This bugfix allows servers to
add new Subscription fields and send corresponding events without
causing the app to discard its data and reregister a new event
queue.
There's one field we'd like to remove code for, in_home_view, which
was deprecated in FL 139 but is still sent (as of CZO on 2025-10-03)
alongside an event with the modern is_muted field. This change
prepares for that by gracefully ignoring
SubscriptionProperty.unknown, which will be how in_home_view gets
represented.1 parent 0c61d84 commit 9f560fa
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
762 | 762 | | |
763 | 763 | | |
764 | 764 | | |
| 765 | + | |
765 | 766 | | |
766 | 767 | | |
767 | 768 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments