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.
usersReducers: Handle 'EVENT_USER_UPDATE' server events
Fixes zulip#3397 Part of zulip#3408 Handles the three types of user data updates possible: * full name * avatar * custom profile field Extra care is taken not to mutate the state if not necessary. This is done for two reasons: * currently editing values throught he web app causes two events, one of which is not necessary (maybe should be fixed) * this is likely the largest state, doing an extra `isEqual` can save copying all this data
- Loading branch information
1 parent
a277dab
commit f049142
Showing
2 changed files
with
94 additions
and
4 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