mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-05 22:25:36 +00:00
Compare the right types of events
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user