Skip to content

Commit

Permalink
Make sure we reset the feature flag when upgrading to SSS. (#3272)
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave authored Sep 12, 2024
1 parent d24214c commit a1c47ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ElementX/Sources/Screens/HomeScreen/HomeScreenViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
case .skipRecoveryKeyConfirmation:
state.securityBannerMode = .dismissed
case .confirmSlidingSyncUpgrade:
appSettings.slidingSyncDiscovery = .native
actionsSubject.send(.logout)
case .skipSlidingSyncUpgrade:
state.slidingSyncMigrationBannerMode = .dismissed
Expand Down Expand Up @@ -326,6 +327,7 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
title: L10n.bannerMigrateToNativeSlidingSyncForceLogoutTitle,
primaryButton: .init(title: L10n.bannerMigrateToNativeSlidingSyncAction,
action: { [weak self] in
self?.appSettings.slidingSyncDiscovery = .native
self?.actionsSubject.send(.logoutWithoutConfirmation)
}))
}
Expand Down

0 comments on commit a1c47ad

Please sign in to comment.