jiti-meet/modules/UI
virtuacoplenny 28013f6ffa ref(avatars): remove Avatar.js (#2289)
* ref(avatars): remove Avatar.js

- Rely on redux getting updated with new participant state
and any calls to getAvatarURL passing in the redux
participant state. This way the state within Avatar.js can
be removed.
- Clean up methods on UI.js. Because all state is in the
store, separate methods for updating the avatar aren't as
necessary. Instead centralize accessing of the avatar for
components outside of redux and centralize the call to
update avatars for non-react components.
- Controversial: cache a participant's avatarURL on the
participant state. Currently the participant's avatarURL
that is generated without jwt (which sets the avatarURL directly)
is not cached. Without cache, there can be many redundant
calls to APP.API.notifyAvatarChanged.

* Leverage middleware timing to diff avatars

One alternative implementation is to leverage middleware's
ability to intercept updates before and after redux has
upated and then compare avatarURLs.

* kill UI.getAvatarUrl

* profile button sets its own avatar url (solves update timing)

* remove calls to updating avatar outside of middleware

* update UI.js doc

* remove left over logic from initial implementation

* try to move local user fallback into selector func

* default to id 'local' in selector
2017-12-19 17:11:54 -06:00
..
audio_levels feat(eslint): Enable for non react files 2017-10-16 14:36:29 -05:00
authentication ref(notifications): convert some dialogs to error or warning notifica… (#1991) 2017-11-03 14:05:03 -05:00
etherpad fix(vertical-filmstrip): prevent shared videos from displaying under avatars 2017-12-05 08:45:45 -06:00
recording ref(analytics): centralize all event names (#2272) 2017-12-11 12:48:32 -06:00
shared_video ref(analytics): centralize all event names (#2272) 2017-12-11 12:48:32 -06:00
side_pannels ref(avatars): remove Avatar.js (#2289) 2017-12-19 17:11:54 -06:00
util fix(notifications): throttle and batch join notifications (#2182) 2017-11-21 11:38:40 -06:00
videolayout ref(avatars): remove Avatar.js (#2289) 2017-12-19 17:11:54 -06:00
UI.js ref(avatars): remove Avatar.js (#2289) 2017-12-19 17:11:54 -06:00
UIErrors.js feat(eslint): Enable for non react files 2017-10-16 14:36:29 -05:00