forked from zulip/zulip-mobile
-
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.
usersReducer: Handle
EVENT_USER_UPDATE
a little bit.
I'm wary of suddenly starting to clobber any arbitrary property in users, so I'm starting small with just `avatar_url`. I chose this in particular because we're about to use our own new data type here, the `AvatarURL`. But, in the tests, lay the groundwork for handling all other documented updates. Now, when someone updates their avatar, it will be live-updated in `state.users`; see discussion, where Tim said to check that this is being done [1]. Note that it's not yet updated in `state.messages`, so the message list won't be live-updated when someone changes their avatar. See discussion [2] on implementing this. [1] https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/user_avatar_url_field_optional/near/909056. In retrospect, I think he actually meant to make sure the server was behaving correctly -- but we might as well start doing the right thing here too. [2] https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/user_avatar_url_field_optional/near/992469
- Loading branch information
1 parent
3b76e5b
commit 7296551
Showing
4 changed files
with
117 additions
and
8 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
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
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
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