[Room] Set default room attr

This commit is contained in:
Christian Pauly 2019-08-08 13:00:56 +02:00
parent 8d563c9757
commit e1470b0f97
1 changed files with 8 additions and 8 deletions

View File

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