Finish creating groups

This commit is contained in:
Christian Pauly 2020-01-19 16:56:13 +01:00
commit 0c93fc39e1
2 changed files with 40 additions and 6 deletions

View file

@ -5,7 +5,8 @@ extension LocalizedRoomDisplayname on Room {
String getLocalizedDisplayname(BuildContext context) {
if ((this.name?.isEmpty ?? true) &&
(this.canonicalAlias?.isEmpty ?? true) &&
!this.isDirectChat) {
!this.isDirectChat &&
this.mHeroes.isNotEmpty) {
return "Group with ${this.displayname}";
}
return this.displayname;