Merge branch 'ChristianPauly-master-patch-71946' into 'master'
Update lib/src/room.dart See merge request famedly/famedlysdk!287
This commit is contained in:
commit
aa8cdb10b0
|
@ -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