Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Mar 24, 2020
1 parent 3b9b013 commit 4309ccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/lib/roomTypes/direct.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export class DirectMessageRoomType extends RoomTypeConfig {
}

getAvatarPath(roomData, subData) {
if (roomData.uids && roomData.uids.length > 2) {
if (roomData && roomData.uids && roomData.uids.length > 2) {
return getAvatarURL({ username: roomData.uids.length + roomData.usernames.join() });
}
const sub = subData || Subscriptions.findOne({ rid: roomData._id }, { fields: { name: 1 } });
Expand Down

0 comments on commit 4309ccb

Please sign in to comment.