From 879c4ff9513ff39bbb2d5b8b6456b51369981a8d Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 Aug 2020 14:11:53 +0200 Subject: [PATCH] default for all flags should be false --- src/matrix/room/RoomSummary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/room/RoomSummary.js b/src/matrix/room/RoomSummary.js index 6159d3e2..6d7361ee 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.isEncrypted = copy ? copy.isEncrypted : null; - this.isDirectMessage = copy ? copy.isDirectMessage : null; this.isUnread = copy ? copy.isUnread : false; + this.isEncrypted = copy ? copy.isEncrypted : false; + this.isDirectMessage = copy ? copy.isDirectMessage : false; this.membership = copy ? copy.membership : null; this.inviteCount = copy ? copy.inviteCount : 0; this.joinCount = copy ? copy.joinCount : 0;