mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-29 20:07:32 +00:00
fix: Correctly handle size evaluation of local events
Also improved the performance of `pdu_fits`
This commit is contained in:
4 files changed
+30
-57
No files matched your search
@@ -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."
|
||||
|
||||
Reference in new issue
Block a user