fix: priorize direct chat users over empty hero user list
Signed-off-by: The one with the braid <info@braid.business>
This commit is contained in:
parent
af9919786a
commit
4edae55852
|
|
@ -249,8 +249,10 @@ class Room {
|
|||
}
|
||||
|
||||
final directChatMatrixID = this.directChatMatrixID;
|
||||
final heroes = summary.mHeroes ??
|
||||
(directChatMatrixID == null ? [] : [directChatMatrixID]);
|
||||
final heroes = summary.mHeroes ?? [];
|
||||
if (directChatMatrixID != null && heroes.isEmpty) {
|
||||
heroes.add(directChatMatrixID);
|
||||
}
|
||||
if (heroes.isNotEmpty) {
|
||||
final result = heroes
|
||||
.where(
|
||||
|
|
|
|||
Loading…
Reference in New Issue