Update lib/src/room.dart

This commit is contained in:
Christian Pauly 2020-05-14 07:06:18 +00:00
parent 2525b3d9f1
commit eada53b15f

View file

@ -298,6 +298,11 @@ class Room {
(canonicalAlias?.isEmpty ?? true) &&
!isDirectChat &&
(mHeroes?.isEmpty ?? true)) {
if (membership == Membership.invite) {
final sender =
getState('m.room.member', client.userID)?.sender?.calcDisplayname();
if (sender != null) return sender;
}
return i18n.emptyChat;
}
return displayname;