mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-17 08:55:12 +00:00
chore: Follow up deduplicate events
This commit is contained in:
parent
fe4e2b9418
commit
9358ef2f40
1 changed files with 10 additions and 0 deletions
|
@ -70,6 +70,16 @@ class ChatSearchController extends State<ChatSearchPage>
|
||||||
result.$2,
|
result.$2,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
// Deduplication workaround for
|
||||||
|
// https://github.com/famedly/matrix-dart-sdk/issues/1831
|
||||||
|
.map(
|
||||||
|
(result) => (
|
||||||
|
<String, Event>{
|
||||||
|
for (final event in result.$1) event.eventId: event,
|
||||||
|
}.values.toList(),
|
||||||
|
result.$2,
|
||||||
|
),
|
||||||
|
)
|
||||||
.asBroadcastStream();
|
.asBroadcastStream();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue