From a43f5048dbccd375f7f5e9ffa3f133ce3bf4ad73 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 23 Jul 2019 15:10:38 +0200 Subject: [PATCH] [RoomList] Set hasName to false --- lib/src/RoomList.dart | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/src/RoomList.dart b/lib/src/RoomList.dart index 0fa7146..b1544aa 100644 --- a/lib/src/RoomList.dart +++ b/lib/src/RoomList.dart @@ -86,12 +86,14 @@ class RoomList { num position = chatUpdate.membership == Membership.invite ? 0 : j; // Add the new chat to the list Room newRoom = Room( - id: chatUpdate.id, - name: "", - membership: chatUpdate.membership, - prev_batch: chatUpdate.prev_batch, - highlightCount: chatUpdate.highlight_count, - notificationCount: chatUpdate.notification_count); + id: chatUpdate.id, + name: "", + membership: chatUpdate.membership, + prev_batch: chatUpdate.prev_batch, + highlightCount: chatUpdate.highlight_count, + notificationCount: chatUpdate.notification_count, + hasName: false, + ); rooms.insert(position, newRoom); if (onInsert != null) onInsert(position); }