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
@@ -40,12 +40,12 @@ struct UserOtherSessionsViewState: BindableState, Equatable {
var emptyItemsTitle: String
var allItemsSelected: Bool
var enableSignOutButton: Bool
var showLocationInfo: Bool = RiotSettings.shared.showIPAddressesInSessionsManager
}
struct UserOtherSessionsBindings: Equatable {
var filter: UserOtherSessionsFilter
var isEditModeEnabled: Bool
var showLocationInfo = false
}
enum UserOtherSessionsViewAction {
@@ -56,4 +56,5 @@ enum UserOtherSessionsViewAction {
case toggleAllSelection
case logoutAllUserSessions
case logoutSelectedUserSessions
case showLocationInfo
}