Update lib/src/room.dart
This commit is contained in:
parent
2525b3d9f1
commit
eada53b15f
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue