[FIX] Prevent crash when room.uids was not inserted yet (#2055)
Co-authored-by: Diego Mello <diegolmello@gmail.com>
This commit is contained in:
parent
56dc7243dd
commit
3f79ab7953
|
@ -1238,7 +1238,7 @@ const RocketChat = {
|
|||
},
|
||||
getRoomAvatar(room) {
|
||||
if (RocketChat.isGroupChat(room)) {
|
||||
return room.uids.length + room.usernames.join();
|
||||
return room.uids?.length + room.usernames?.join();
|
||||
}
|
||||
return room.prid ? room.fname : room.name;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue