We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af99197 + 4edae55 commit 0960e35Copy full SHA for 0960e35
lib/src/room.dart
@@ -249,8 +249,10 @@ class Room {
249
}
250
251
final directChatMatrixID = this.directChatMatrixID;
252
- final heroes = summary.mHeroes ??
253
- (directChatMatrixID == null ? [] : [directChatMatrixID]);
+ final heroes = summary.mHeroes ?? [];
+ if (directChatMatrixID != null && heroes.isEmpty) {
254
+ heroes.add(directChatMatrixID);
255
+ }
256
if (heroes.isNotEmpty) {
257
final result = heroes
258
.where(
0 commit comments