diff --git a/app/views/RoomsListView/index.js b/app/views/RoomsListView/index.js index 165353b372..0f9c8762ff 100644 --- a/app/views/RoomsListView/index.js +++ b/app/views/RoomsListView/index.js @@ -402,7 +402,7 @@ export default class RoomsListView extends LoggedView { unread={item.unread} userMentions={item.userMentions} favorite={item.f} - lastMessage={JSON.parse(JSON.stringify(item.lastMessage))} + lastMessage={item.lastMessage ? JSON.parse(JSON.stringify(item.lastMessage)) : null} name={this.getRoomTitle(item)} _updatedAt={item.roomUpdatedAt} key={item._id}