From 4969009b2b2f5f51f25e96c7d5421de1b4f1c886 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 Aug 2020 14:10:53 +0200 Subject: [PATCH] default should be false, so comparison in the sorter is stable --- src/matrix/room/RoomSummary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/RoomSummary.js b/src/matrix/room/RoomSummary.js index d149e1cc..6159d3e2 100644 --- a/src/matrix/room/RoomSummary.js +++ b/src/matrix/room/RoomSummary.js @@ -113,9 +113,9 @@ class SummaryData { this.name = copy ? copy.name : null; this.lastMessageBody = copy ? copy.lastMessageBody : null; this.lastMessageTimestamp = copy ? copy.lastMessageTimestamp : null; - this.isUnread = copy ? copy.isUnread : null; this.isEncrypted = copy ? copy.isEncrypted : null; this.isDirectMessage = copy ? copy.isDirectMessage : null; + this.isUnread = copy ? copy.isUnread : false; this.membership = copy ? copy.membership : null; this.inviteCount = copy ? copy.inviteCount : 0; this.joinCount = copy ? copy.joinCount : 0;