fix: Correctly handle size evaluation of local events

Also improved the performance of `pdu_fits`
This commit is contained in:
timedout committed 2026-03-29 13:42:49 +01:00
1 parent b0e3b9eeb5
commit 053860e496
4 files changed
+30 -57

No files matched your search

+1 -1
View File
@@ -584,7 +584,7 @@ async fn join_room_by_id_helper_remote(
return state;
},
};
if !pdu_fits(&mut value.clone()) {
if !pdu_fits(&value) {
warn!(
"dropping incoming PDU {event_id} in room {room_id} from room join because \
it exceeds 65535 bytes or is otherwise too large."