mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix the bug report size check and a bad swiftlint command. (#5045)
This commit is contained in:
@@ -232,7 +232,7 @@ class BugReportService: NSObject, BugReportServiceProtocol {
|
||||
// **However:** given our gzip library compresses in memory it is possible to OOM
|
||||
// on files that will obviously be thrown away, so check the uncompressed size too.
|
||||
let uncompressedSizeThreshold = maxUploadSize * 5
|
||||
if try FileManager.default.sizeForItem(at: url) > maxUploadSize {
|
||||
if try FileManager.default.sizeForItem(at: url) > uncompressedSizeThreshold {
|
||||
MXLog.error("Uncompressed logs too large, skipping attachment: \(url.lastPathComponent)")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user