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

@ -157,7 +157,7 @@ pub(crate) async fn get_message_events_route(
.timeline
.pdus_after(sender_user, &body.room_id, from)?
.take(limit)
.filter_map(Result::ok) // Filter out buggy events
.filter_map(Result::ok)
.filter(|(_, pdu)| {
services()
.rooms
@ -206,7 +206,7 @@ pub(crate) async fn get_message_events_route(
.timeline
.pdus_until(sender_user, &body.room_id, from)?
.take(limit)
.filter_map(Result::ok) // Filter out buggy events
.filter_map(Result::ok)
.filter(|(_, pdu)| {
services()
.rooms