From 08fb23262701caa46507932b20183c60d7ed2c9f Mon Sep 17 00:00:00 2001 From: Vlad Piersec Date: Mon, 8 Nov 2021 11:32:21 +0200 Subject: [PATCH] fix(Avatar): Calculate avatar color based on display name --- react/features/base/avatar/components/Avatar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/base/avatar/components/Avatar.js b/react/features/base/avatar/components/Avatar.js index fadf55153..31bbe85b7 100644 --- a/react/features/base/avatar/components/Avatar.js +++ b/react/features/base/avatar/components/Avatar.js @@ -220,7 +220,7 @@ export function _mapStateToProps(state: Object, ownProps: Props) { _customAvatarBackgrounds: state['features/dynamic-branding'].avatarBackgrounds, _initialsBase, _loadableAvatarUrl: _participant?.loadableAvatarUrl, - colorBase: !colorBase && _participant ? _participant.id : colorBase + colorBase }; }