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 directChatMatrixID = this.directChatMatrixID;
|
||||||
final heroes = summary.mHeroes ??
|
final heroes = summary.mHeroes ?? [];
|
||||||
(directChatMatrixID == null ? [] : [directChatMatrixID]);
|
if (directChatMatrixID != null && heroes.isEmpty) {
|
||||||
|
heroes.add(directChatMatrixID);
|
||||||
|
}
|
||||||
if (heroes.isNotEmpty) {
|
if (heroes.isNotEmpty) {
|
||||||
final result = heroes
|
final result = heroes
|
||||||
.where(
|
.where(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue