mirror of
https://github.com/krille-chan/fluffychat
synced 2024-10-05 14:32:43 +00:00
chore: Follow up deduplicate gallery and file search
This commit is contained in:
parent
9358ef2f40
commit
2084615df1
1 changed files with 20 additions and 0 deletions
|
@ -110,6 +110,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();
|
||||
});
|
||||
}
|
||||
|
@ -140,6 +150,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();
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue