[Room] Set default room attr

This commit is contained in:
Christian Pauly 2019-08-08 13:00:56 +02:00
parent 8d563c9757
commit e1470b0f97

View file

@ -131,17 +131,17 @@ class Room {
Room({ Room({
this.id, this.id,
this.membership, this.membership = Membership.join,
this.notificationCount, this.notificationCount = 0,
this.highlightCount, this.highlightCount = 0,
this.prev_batch = "", this.prev_batch = "",
this.client, this.client,
this.notificationSettings, this.notificationSettings,
this.mHeroes, this.mHeroes = const [],
this.mInvitedMemberCount, this.mInvitedMemberCount = 0,
this.mJoinedMemberCount, this.mJoinedMemberCount = 0,
this.states, this.states = const {},
this.roomAccountData, this.roomAccountData = const {},
}); });
/// Calculates the displayname. First checks if there is a name, then checks for a canonical alias and /// Calculates the displayname. First checks if there is a name, then checks for a canonical alias and