mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-25 11:02:48 +02:00
Fix review comments
Also fix a crash on iPad.
This commit is contained in:
@@ -29,3 +29,14 @@ class AuthenticatedEndpointRequest: NSObject {
|
||||
super.init()
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Helper methods
|
||||
|
||||
extension AuthenticatedEndpointRequest {
|
||||
/// Create an authenticated request on `_matrix/client/r0/devices/{deviceID}`.
|
||||
/// - Parameter deviceID: The device ID that is to be deleted.
|
||||
static func deleteDevice(_ deviceID: String) -> AuthenticatedEndpointRequest {
|
||||
let path = String(format: "%@/devices/%@", kMXAPIPrefixPathR0, MXTools.encodeURIComponent(deviceID))
|
||||
return AuthenticatedEndpointRequest(path: path, httpMethod: "DELETE")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user