Skip to content

Commit

Permalink
[Regression] Search stopped working on Android after LastMessage refa…
Browse files Browse the repository at this point in the history
…ctor (#851)
  • Loading branch information
diegolmello authored Apr 26, 2019
1 parent ee99001 commit 2f25b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/RoomsListView/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 2f25b10

Please sign in to comment.