From 2f25b10681d9c124838701a4df98d0786fefe1c5 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Fri, 26 Apr 2019 09:14:30 -0300 Subject: [PATCH] [Regression] Search stopped working on Android after LastMessage refactor (#851) --- app/views/RoomsListView/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/RoomsListView/index.js b/app/views/RoomsListView/index.js index 165353b37..0f9c8762f 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}