jiti-meet/react/features/toolbox/components
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
..
AbstractToolbarButton.js Import PropTypes from prop-types 2017-09-27 16:24:53 -05:00
AudioRouteButton.js [RN] Group the secondary toobar buttons 2017-11-15 09:31:40 -06:00
Notice.js feat(web/RN): update React to v16 and React Native to 0.49 2017-11-02 14:32:35 +01:00
PrimaryToolbar.web.js feat(web/RN): update React to v16 and React Native to 0.49 2017-11-02 14:32:35 +01:00
ProfileButton.native.js fix(profile_button): unclickable 2017-09-24 21:50:30 -05:00
ProfileButton.web.js ref(avatars): remove Avatar.js (#2289) 2017-12-19 17:11:54 -06:00
SecondaryToolbar.web.js feat(web/RN): update React to v16 and React Native to 0.49 2017-11-02 14:32:35 +01:00
StatelessToolbar.web.js feat(web/RN): update React to v16 and React Native to 0.49 2017-11-02 14:32:35 +01:00
StatelessToolbarButton.js fix(aot): Toolbar styles (#2252) 2017-12-04 20:23:51 -08:00
Toolbar.web.js Upgrade NPM dependencies/packages: ESLint 2017-12-04 00:21:01 -06:00
ToolbarButton.native.js feat: add more accessibility labels 2017-11-28 12:28:37 -06:00
ToolbarButton.web.js fix(aot): Toolbar styles (#2252) 2017-12-04 20:23:51 -08:00
ToolbarButtonWithDialog.native.js ref(info): new component for showing meeting info 2017-09-25 08:42:00 -05:00
ToolbarButtonWithDialog.web.js feat(info): automatically show the info dialog (#2018) 2017-09-29 15:27:23 -05:00
Toolbox.native.js ref(analytics): centralize all event names (#2272) 2017-12-11 12:48:32 -06:00
Toolbox.web.js feat(web/RN): update React to v16 and React Native to 0.49 2017-11-02 14:32:35 +01:00
index.js ref(info): new component for showing meeting info 2017-09-25 08:42:00 -05:00
styles.js [RN] Consistent margins for Filmstrip and Toolbox 2017-11-07 17:27:58 -06:00