mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-07 21:08:28 +00:00
Remove redundant versions.contains(.native) check
This commit is contained in:
committed by
Stefan Ceriu
parent
d53e185d81
commit
feaaeb5090
@@ -316,9 +316,7 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
||||
return
|
||||
}
|
||||
|
||||
if versions.contains(.native) {
|
||||
// Both available, prompt for migration
|
||||
if versions.contains(where: \.isProxy) {
|
||||
if versions.contains(where: \.isProxy) { // Both available, prompt for migration
|
||||
state.slidingSyncMigrationBannerMode = .show
|
||||
} else { // The proxy has been removed and logout is needed
|
||||
// Delay setting the alert otherwise it automatically gets dismissed. Same as the crashed last run one
|
||||
@@ -333,7 +331,6 @@ class HomeScreenViewModel: HomeScreenViewModelType, HomeScreenViewModelProtocol
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func markRoomAsFavourite(_ roomID: String, isFavourite: Bool) async {
|
||||
guard case let .joined(roomProxy) = await userSession.clientProxy.roomForIdentifier(roomID) else {
|
||||
|
||||
Reference in New Issue
Block a user