[Regression] Search stopped working on Android after LastMessage refactor (#851)

This commit is contained in:
Diego Mello 2019-04-26 09:14:30 -03:00 committed by GitHub
parent ee99001010
commit 2f25b10681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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}