Commit 921b4d7e authored by Wilko Manger's avatar Wilko Manger

Remove redundant members assignment

parent e106337f
......@@ -36,16 +36,15 @@ FutureOr<String> nameOf(BuildContext context, Room room) {
return displayNameOf(room.directUser);
}
final futureOrMembers = room.members.get(upTo: 6);
String calculateName(Iterable<User> members) {
print('members: $members');
var name = '';
if (members != null) {
if (members.length == 1) {
return l(context).you;
// TODO: Check for aliases (public chats)
} else {
final nonMeMembers = members = members
final nonMeMembers = members
.where((user) => !user.isIdenticalTo(di.getLocalUser()))
.toList(growable: false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment