mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-11-22 08:17:28 +00:00
Cap the courier spray ack and decline as control packets
The per-type payload caps on main (#1719) switch exhaustively over MessageType, and the two spray types this branch adds had no case, so the merge did not compile. Both carry a packet ID and a signature, so they take the 4 KiB control ceiling alongside announce and ping. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
3c68b6fe70
commit
c1e5a474e8
@ -91,7 +91,8 @@ public enum PacketPayloadLimits {
|
||||
case .fragment:
|
||||
return fragmentBytes
|
||||
case .announce, .announceV2, .leave, .boardPost, .prekeyBundle,
|
||||
.voiceFrame, .noiseHandshake, .ping, .pong:
|
||||
.voiceFrame, .noiseHandshake, .ping, .pong,
|
||||
.courierSprayAck, .courierSprayDecline:
|
||||
return controlBytes
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user