mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Update danger message and brew dependencies. (#683)
This commit is contained in:
@@ -243,7 +243,7 @@ private extension Data {
|
||||
case .file(let url):
|
||||
appendString(string: "; filename=\"\(url.lastPathComponent)\"\r\n")
|
||||
appendString(string: "Content-Type: \"content-type header\"\r\n\r\n")
|
||||
append(try Data(contentsOf: url))
|
||||
try append(Data(contentsOf: url))
|
||||
appendString(string: "\r\n")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class ScreenshotDetector {
|
||||
findScreenshot()
|
||||
} else if authStatus == .notDetermined, autoRequestPHAuthorization {
|
||||
Task {
|
||||
self.handleAuthStatus(await PHPhotoLibrary.requestAuthorization(for: .readWrite))
|
||||
await self.handleAuthStatus(PHPhotoLibrary.requestAuthorization(for: .readWrite))
|
||||
}
|
||||
} else {
|
||||
fail(withError: ScreenshotDetectorError.notAuthorized)
|
||||
|
||||
Reference in New Issue
Block a user