Add show/hide ip persistency

This commit is contained in:
Alfonso Grillo
2022-11-02 17:51:26 +01:00
parent 2045dfdaa0
commit e6e7e7c5d4
4 changed files with 14 additions and 9 deletions

View File

@@ -78,6 +78,10 @@ class UserSessionsOverviewViewModel: UserSessionsOverviewViewModelType, UserSess
completion?(.linkDevice)
case .logoutOtherSessions:
completion?(.logoutFromUserSessions(sessionInfos: userSessionsOverviewService.otherSessions))
case .showLocationInfo:
let newShowLocationInfo = !RiotSettings.shared.showIPAddressesInSessionsManager
RiotSettings.shared.showIPAddressesInSessionsManager = newShowLocationInfo
state.showLocationInfo = newShowLocationInfo
}
}