From 441016330bc4e786425effb3f32cc42b2ce70165 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Sun, 19 Nov 2017 01:42:35 -0200 Subject: [PATCH] avoid recalc colors and initials avatar --- app/presentation/RoomItem.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/presentation/RoomItem.js b/app/presentation/RoomItem.js index b69da666d..a127a67cd 100644 --- a/app/presentation/RoomItem.js +++ b/app/presentation/RoomItem.js @@ -87,13 +87,12 @@ export default class RoomItem extends React.PureComponent { return null; } - const { color } = avatarInitialsAndColor(name); - if (type === 'd') { return ( ); } + const { color } = avatarInitialsAndColor(name); return (