diff --git a/ElementX/Sources/Services/BugReport/BugReportService.swift b/ElementX/Sources/Services/BugReport/BugReportService.swift index 9af74bee8..403fde08f 100644 --- a/ElementX/Sources/Services/BugReport/BugReportService.swift +++ b/ElementX/Sources/Services/BugReport/BugReportService.swift @@ -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 } diff --git a/NSE/Sources/NotificationServiceExtension.swift b/NSE/Sources/NotificationServiceExtension.swift index efd175af7..8bb2e9c95 100644 --- a/NSE/Sources/NotificationServiceExtension.swift +++ b/NSE/Sources/NotificationServiceExtension.swift @@ -76,7 +76,8 @@ class NotificationServiceExtension: UNNotificationServiceExtension { // to be able to create a session (and even if we could, we would be missing the lightweightTokioRuntime), // so instead lets deliver the default generic notification and avoid attempting to process the notification. guard Self.targetConfiguration != nil else { - // swiftlint:disable:next print_deprecation (MXLog isn't configured) + // MXLog isn't configured + // swiftlint:disable:next print_deprecation print("Device is locked after reboot, delivering the unmodified notification.") return contentHandler(request.content) }