mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 15:09:31 +02:00
code improvement
This commit is contained in:
@@ -656,7 +656,7 @@ enum {
|
||||
|
||||
- (void)removeDevice
|
||||
{
|
||||
NSURL *logoutURL = [self.mainSession.homeserverWellknown.authentication getMasLogoutDeviceURLFromDeviceID:device.deviceId];
|
||||
NSURL *logoutURL = [self.mainSession.homeserverWellknown.authentication getLogoutDeviceURLFromID:device.deviceId];
|
||||
if (logoutURL)
|
||||
{
|
||||
[UIApplication.sharedApplication openURL:logoutURL options:@{} completionHandler:nil];
|
||||
|
||||
@@ -123,7 +123,7 @@ final class UserSessionsFlowCoordinator: NSObject, Coordinator, Presentable {
|
||||
if sessionInfo.isCurrent {
|
||||
self.showLogoutConfirmationForCurrentSession()
|
||||
} else {
|
||||
if let logoutURL = self.parameters.session.homeserverWellknown.authentication?.getMasLogoutDeviceURL(fromDeviceID: sessionInfo.id) {
|
||||
if let logoutURL = self.parameters.session.homeserverWellknown.authentication?.getLogoutDeviceURL(fromID: sessionInfo.id) {
|
||||
self.openMasLogoutURL(logoutURL)
|
||||
} else {
|
||||
self.showLogoutConfirmation(for: [sessionInfo])
|
||||
|
||||
Reference in New Issue
Block a user