[Room] Set default room attr
This commit is contained in:
parent
8d563c9757
commit
e1470b0f97
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue