forked from zulip/zulip-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
message: Add skeleton of handling a move UpdateMessageEvent
The way the Zulip server API expresses whether there was a move, and if so what kind of move, is a bit quirky. This change adds logic to interpret that information into a more canonical form. The logic here is translated from what we have in zulip-mobile: https://github.com/zulip/zulip-mobile/blob/e352f563e/src/api/misc.js#L26 This doesn't yet do anything to actually update our data structures, and it's an NFC change for release builds. The only behavior change is new asserts that fire when the event from the server is malformed.
- Loading branch information
1 parent
06745d8
commit 155895a
Showing
1 changed file
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters