fix: filter edited events from search results
This commit is contained in:
parent
71670728ff
commit
8612f989c6
1 changed files with 16 additions and 1 deletions
|
|
@ -76,10 +76,25 @@ class ChatSearchController extends State<ChatSearchPage>
|
|||
(result) => (
|
||||
<String, Event>{
|
||||
for (final event in result.$1) event.eventId: event,
|
||||
}.values.toList(),
|
||||
// #Pangea
|
||||
// }.values.toList(),
|
||||
}
|
||||
.values
|
||||
.toList()
|
||||
.where(
|
||||
(e) => !e.hasAggregatedEvents(
|
||||
timeline,
|
||||
RelationshipTypes.edit,
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
// Pangea#
|
||||
result.$2,
|
||||
),
|
||||
)
|
||||
// #Pangea
|
||||
.where((result) => result.$1.isNotEmpty)
|
||||
// Pangea#
|
||||
.asBroadcastStream();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue