From a713cc5c52309f74d1dfccef28556de037eb3db1 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 1 Nov 2018 17:07:05 -0600 Subject: [PATCH] Compare the right types of events --- src/stores/RoomListStore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stores/RoomListStore.js b/src/stores/RoomListStore.js index 8dc557ace0..f7596774b6 100644 --- a/src/stores/RoomListStore.js +++ b/src/stores/RoomListStore.js @@ -335,7 +335,7 @@ class RoomListStore extends Store { if (pinUnread) { 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;