mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-08-08 06:46:11 +00:00
docs: flag MAX_PAYLOAD_LENGTH must stay in sync with iOS
Companion to permissionlesstech/bitchat#1618, which raised iOS's decompressed payload ceiling from ~1.13 MiB to 10 MiB to match this constant. Adding a comment here so the next change to either constant doesn't silently reintroduce the cross-platform mismatch. Refs #1618
This commit is contained in:
parent
c02dda308e
commit
eed9fc47b6
@ -67,6 +67,9 @@ object AppConstants {
|
||||
|
||||
object Protocol {
|
||||
const val COMPRESSION_THRESHOLD_BYTES: Int = 100
|
||||
// MUST stay in sync with iOS's FileTransferLimits.maxFramedFileBytes
|
||||
// (LocalPackages/BitFoundation/Sources/BitFoundation/FileTransferLimits.swift in permissionlesstech/bitchat).
|
||||
// Reference issue #1618, which fixed a mismatch where iOS's ceiling was ~1.13 MiB instead of 10 MiB.
|
||||
const val MAX_PAYLOAD_LENGTH: Int = 10_485_760
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user