[RoomList] Set hasName to false
This commit is contained in:
parent
a38d43b167
commit
a43f5048db
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue