sliding-sync: Filter redacted events from bump calculation.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -176,6 +176,7 @@ async fn handle_room(
|
|||||||
.binary_search(pdu.event_type())
|
.binary_search(pdu.event_type())
|
||||||
.is_ok()
|
.is_ok()
|
||||||
})
|
})
|
||||||
|
.filter(|(_, pdu)| !pdu.is_redacted())
|
||||||
.map(at!(0))
|
.map(at!(0))
|
||||||
.filter(|count| matches!(count, PduCount::Normal(_)))
|
.filter(|count| matches!(count, PduCount::Normal(_)))
|
||||||
.map(PduCount::into_unsigned)
|
.map(PduCount::into_unsigned)
|
||||||
|
|||||||
Reference in New Issue
Block a user