Merge branch 'ChristianPauly-master-patch-71946' into 'master'

Update lib/src/room.dart

See merge request famedly/famedlysdk!287
This commit is contained in:
Christian Pauly 2020-05-14 07:11:13 +00:00
commit aa8cdb10b0

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;