fix: direct message room name computation
Signed-off-by: The one with the braid <braid@famedly.com>
This commit is contained in:
parent
4addccd9da
commit
30c27f00a1
|
|
@ -249,7 +249,10 @@ class Room {
|
||||||
(directChatMatrixID == null ? [] : [directChatMatrixID]);
|
(directChatMatrixID == null ? [] : [directChatMatrixID]);
|
||||||
if (heroes.isNotEmpty) {
|
if (heroes.isNotEmpty) {
|
||||||
final result = heroes
|
final result = heroes
|
||||||
.where((hero) => hero.isNotEmpty)
|
.where(
|
||||||
|
// removing oneself from the hero list
|
||||||
|
(hero) => hero.isNotEmpty && hero != client.userID,
|
||||||
|
)
|
||||||
.map((hero) => unsafeGetUserFromMemoryOrFallback(hero)
|
.map((hero) => unsafeGetUserFromMemoryOrFallback(hero)
|
||||||
.calcDisplayname(i18n: i18n))
|
.calcDisplayname(i18n: i18n))
|
||||||
.join(', ');
|
.join(', ');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue