[RoomList] Set hasName to false

This commit is contained in:
Christian Pauly 2019-07-23 15:10:38 +02:00
parent a38d43b167
commit a43f5048db

View file

@ -86,12 +86,14 @@ class RoomList {
num position = chatUpdate.membership == Membership.invite ? 0 : j; num position = chatUpdate.membership == Membership.invite ? 0 : j;
// Add the new chat to the list // Add the new chat to the list
Room newRoom = Room( Room newRoom = Room(
id: chatUpdate.id, id: chatUpdate.id,
name: "", name: "",
membership: chatUpdate.membership, membership: chatUpdate.membership,
prev_batch: chatUpdate.prev_batch, prev_batch: chatUpdate.prev_batch,
highlightCount: chatUpdate.highlight_count, highlightCount: chatUpdate.highlight_count,
notificationCount: chatUpdate.notification_count); notificationCount: chatUpdate.notification_count,
hasName: false,
);
rooms.insert(position, newRoom); rooms.insert(position, newRoom);
if (onInsert != null) onInsert(position); if (onInsert != null) onInsert(position);
} }