Compare the right types of events

pull/21833/head
Travis Ralston 2018-11-01 17:07:05 -06:00
parent 122868e32f
commit a713cc5c52
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ class RoomListStore extends Store {
if (pinUnread) { if (pinUnread) {
const unreadA = this._getRoomState(roomA, "unread"); const unreadA = this._getRoomState(roomA, "unread");
const unreadB = this._getRoomState(roomB, "notifications"); const unreadB = this._getRoomState(roomB, "unread");
if (unreadA && !unreadB) return -1; if (unreadA && !unreadB) return -1;
if (!unreadA && unreadB) return 1; if (!unreadA && unreadB) return 1;