mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +00:00
Fix secure backup recovery badges not being show when incomplete
This commit is contained in:
committed by
Stefan Ceriu
parent
290dd852a3
commit
3fe5ec5ffa
@@ -99,6 +99,7 @@ struct SecureBackupScreen: View {
|
||||
kind: .navigationLink { context.send(viewAction: .recoveryKey) })
|
||||
case .incomplete:
|
||||
ListRow(label: .plain(title: L10n.screenChatBackupRecoveryActionConfirm),
|
||||
details: .icon(BadgeView(size: 10)),
|
||||
kind: .navigationLink { context.send(viewAction: .recoveryKey) })
|
||||
default:
|
||||
ListRow(label: .plain(title: L10n.commonLoading), details: .isWaiting(true), kind: .label)
|
||||
|
||||
@@ -59,7 +59,7 @@ class SettingsScreenViewModel: SettingsScreenViewModelType, SettingsScreenViewMo
|
||||
.sink { [weak self] state in
|
||||
guard let self else { return }
|
||||
|
||||
self.state.showSecureBackupBadge = (state == .unknown || state == .disabled) && appSettings.chatBackupEnabled
|
||||
self.state.showSecureBackupBadge = (state == .incomplete || state == .disabled) && appSettings.chatBackupEnabled
|
||||
}
|
||||
.store(in: &cancellables)
|
||||
|
||||
|
||||
+2
-2
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d2429e552323f33b2e8feb64f8ed222752546dbacaab15c649bd0fe85900024d
|
||||
size 111841
|
||||
oid sha256:333cd9be32f2a653d622db63d36697c31913a8bb29a3175a63744d1010aa358c
|
||||
size 112225
|
||||
|
||||
Reference in New Issue
Block a user