Use signed PduCount for better bumpstamp on create and backfill.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-10-27 15:24:50 +00:00
parent d2072080c9
commit 563873af77

View File

@@ -178,8 +178,7 @@ async fn handle_room(
})
.filter(|(_, pdu)| !pdu.is_redacted())
.map(at!(0))
.filter(|count| matches!(count, PduCount::Normal(_)))
.map(PduCount::into_unsigned)
.map(PduCount::into_signed)
.max()
.map(TryInto::try_into)
.flat_ok();