code improvement

This commit is contained in:
Mauro Romito
2023-08-25 19:39:55 +02:00
parent 2b93d8f03a
commit 2a7e0562f1
2 changed files with 2 additions and 2 deletions

View File

@@ -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];

View File

@@ -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])