From ac10e906c0b9dc46d9e637bd9f7ace2618ff7997 Mon Sep 17 00:00:00 2001 From: jack Date: Fri, 26 Sep 2025 12:22:46 +0200 Subject: [PATCH] Drop attachment ceilings to 1 MiB and bump release version --- Configs/Release.xcconfig | 2 +- bitchat/Utils/FileTransferLimits.swift | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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