Update lib/src/room.dart
This commit is contained in:
parent
2525b3d9f1
commit
eada53b15f
1 changed files with 5 additions and 0 deletions
|
@ -298,6 +298,11 @@ class Room {
|
||||||
(canonicalAlias?.isEmpty ?? true) &&
|
(canonicalAlias?.isEmpty ?? true) &&
|
||||||
!isDirectChat &&
|
!isDirectChat &&
|
||||||
(mHeroes?.isEmpty ?? true)) {
|
(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 i18n.emptyChat;
|
||||||
}
|
}
|
||||||
return displayname;
|
return displayname;
|
||||||
|
|
Loading…
Add table
Reference in a new issue