chore: Follow up deduplicate events

This commit is contained in:
Krille 2024-05-28 10:20:56 +02:00
parent fe4e2b9418
commit 9358ef2f40
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -70,6 +70,16 @@ class ChatSearchController extends State<ChatSearchPage>
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();
});
}