diff --git a/Configs/Release.xcconfig b/Configs/Release.xcconfig index 40a6e636..c967132a 100644 --- a/Configs/Release.xcconfig +++ b/Configs/Release.xcconfig @@ -1,4 +1,4 @@ -MARKETING_VERSION = 1.4.4 +MARKETING_VERSION = 1.5.0 CURRENT_PROJECT_VERSION = 1 IPHONEOS_DEPLOYMENT_TARGET = 16.0 diff --git a/bitchat/Utils/FileTransferLimits.swift b/bitchat/Utils/FileTransferLimits.swift index cdd7bf9b..c9e6239a 100644 --- a/bitchat/Utils/FileTransferLimits.swift +++ b/bitchat/Utils/FileTransferLimits.swift @@ -3,11 +3,11 @@ import Foundation /// Centralized thresholds for Bluetooth file transfers to keep payload sizes sane on constrained radios. enum FileTransferLimits { /// Absolute ceiling enforced for any file payload (voice, image, other). - static let maxPayloadBytes: Int = 8 * 1024 * 1024 // 8 MiB + static let maxPayloadBytes: Int = 1 * 1024 * 1024 // 1 MiB /// Voice notes stay small for low-latency relays. - static let maxVoiceNoteBytes: Int = 2 * 1024 * 1024 // 2 MiB + static let maxVoiceNoteBytes: Int = 1 * 1024 * 1024 // 1 MiB /// Compressed images after downscaling should comfortably fit under this budget. - static let maxImageBytes: Int = 4 * 1024 * 1024 // 4 MiB + static let maxImageBytes: Int = 1 * 1024 * 1024 // 1 MiB static func isValidPayload(_ size: Int) -> Bool { size <= maxPayloadBytes