Add location info in UserOtherSessions

This commit is contained in:
Alfonso Grillo
2022-11-02 17:59:50 +01:00
parent e6e7e7c5d4
commit d688600156
4 changed files with 10 additions and 6 deletions

View File

@@ -79,9 +79,8 @@ class UserSessionsOverviewViewModel: UserSessionsOverviewViewModelType, UserSess
case .logoutOtherSessions:
completion?(.logoutFromUserSessions(sessionInfos: userSessionsOverviewService.otherSessions))
case .showLocationInfo:
let newShowLocationInfo = !RiotSettings.shared.showIPAddressesInSessionsManager
RiotSettings.shared.showIPAddressesInSessionsManager = newShowLocationInfo
state.showLocationInfo = newShowLocationInfo
RiotSettings.shared.showIPAddressesInSessionsManager.toggle()
state.showLocationInfo = RiotSettings.shared.showIPAddressesInSessionsManager
}
}