diff --git a/app/lib/rocketchat.js b/app/lib/rocketchat.js index ad54ac35..52e8f623 100644 --- a/app/lib/rocketchat.js +++ b/app/lib/rocketchat.js @@ -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; },