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)
|
||||
|
||||
@@ -24,12 +24,12 @@ struct RestorationToken: Codable, Equatable {
|
||||
extension MatrixRustSDK.Session: Codable {
|
||||
public init(from decoder: Decoder) throws {
|
||||
let container = try decoder.container(keyedBy: CodingKeys.self)
|
||||
self = .init(accessToken: try container.decode(String.self, forKey: .accessToken),
|
||||
refreshToken: try container.decodeIfPresent(String.self, forKey: .refreshToken),
|
||||
userId: try container.decode(String.self, forKey: .userId),
|
||||
deviceId: try container.decode(String.self, forKey: .deviceId),
|
||||
homeserverUrl: try container.decode(String.self, forKey: .homeserverUrl),
|
||||
slidingSyncProxy: try container.decode(String.self, forKey: .slidingSyncProxy))
|
||||
self = try .init(accessToken: container.decode(String.self, forKey: .accessToken),
|
||||
refreshToken: container.decodeIfPresent(String.self, forKey: .refreshToken),
|
||||
userId: container.decode(String.self, forKey: .userId),
|
||||
deviceId: container.decode(String.self, forKey: .deviceId),
|
||||
homeserverUrl: container.decode(String.self, forKey: .homeserverUrl),
|
||||
slidingSyncProxy: container.decode(String.self, forKey: .slidingSyncProxy))
|
||||
}
|
||||
|
||||
public func encode(to encoder: Encoder) throws {
|
||||
|
||||
Reference in New Issue
Block a user