fix: direct message room name computation

Signed-off-by: The one with the braid <braid@famedly.com>
This commit is contained in:
The one with the braid 2023-08-04 08:17:17 +02:00
parent 4addccd9da
commit 30c27f00a1
No known key found for this signature in database
GPG Key ID: 324563E1FC8D6183
1 changed files with 4 additions and 1 deletions

View File

@ -249,7 +249,10 @@ class Room {
(directChatMatrixID == null ? [] : [directChatMatrixID]);
if (heroes.isNotEmpty) {
final result = heroes
.where((hero) => hero.isNotEmpty)
.where(
// removing oneself from the hero list
(hero) => hero.isNotEmpty && hero != client.userID,
)
.map((hero) => unsafeGetUserFromMemoryOrFallback(hero)
.calcDisplayname(i18n: i18n))
.join(', ');