Merge pull request #2010 from TheOneWithTheBraid/braid/hero-user-direct-chat
fix: priorize direct chat MXIDs over empty hero user list
This commit is contained in:
commit
0960e350db
|
|
@ -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