Add show/hide ip persistency

This commit is contained in:
Alfonso Grillo
2022-11-02 17:51:26 +01:00
parent d62f11a655
commit 39128bf281
4 changed files with 14 additions and 9 deletions
@@ -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
}
}