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:
ecgang 2026-09-24 15:47:27 -04:00
parent 3c68b6fe70
commit c1e5a474e8

View File

@ -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
}
}