jiti-meet/react/features/toolbox
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
..
components ref(avatars): remove Avatar.js (#2289) 2017-12-19 17:11:54 -06:00
actionTypes.js [RN] Polyfill Symbol 2017-05-26 16:37:22 -05:00
actions.native.js ref: enable/disable microphone button 2017-07-28 12:06:42 -05:00
actions.web.js feat(overlays): CallOverlay is not really an overlay 2017-12-12 20:52:29 -06:00
constants.js feat(info): automatically show the info dialog (#2018) 2017-09-29 15:27:23 -05:00
defaultToolbarButtons.native.js [RN] Fix TypeError that getDefaultButtons is not a function 2017-10-03 17:26:13 -05:00
defaultToolbarButtons.web.js ref(analytics): centralize all event names (#2272) 2017-12-11 12:48:32 -06:00
functions.native.js feat(conference, toolbox, API) get rid of {audio,video}Muted' flags 2017-08-18 13:30:30 +02:00
functions.web.js Partially prepare for eslint-plugin-flowtype 2.37.0 2017-10-03 14:41:54 -05:00
index.js feat(info): automatically show the info dialog (#2018) 2017-09-29 15:27:23 -05:00
middleware.js [RN] Fix documentation comments 2017-10-01 01:35:19 -05:00
reducer.js [RN] Fix TypeError that getDefaultButtons is not a function 2017-10-03 17:26:13 -05:00