remove comments about filtering buggy items

This commit is contained in:
Charles Hall 2024-05-15 15:43:56 -07:00
parent 40f9aa6f60
commit 3efe3fb337
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
8 changed files with 10 additions and 14 deletions

View file

@ -82,7 +82,7 @@ pub(crate) async fn get_context_route(
.timeline
.pdus_until(sender_user, &room_id, base_token)?
.take(half_limit)
.filter_map(Result::ok) // Remove buggy events
.filter_map(Result::ok)
.filter(|(_, pdu)| {
services()
.rooms
@ -118,7 +118,7 @@ pub(crate) async fn get_context_route(
.timeline
.pdus_after(sender_user, &room_id, base_token)?
.take(half_limit)
.filter_map(Result::ok) // Remove buggy events
.filter_map(Result::ok)
.filter(|(_, pdu)| {
services()
.rooms