Fix secure backup recovery badges not being show when incomplete

This commit is contained in:
Stefan Ceriu
2023-12-04 09:16:35 +02:00
committed by Stefan Ceriu
parent 290dd852a3
commit 3fe5ec5ffa
3 changed files with 4 additions and 3 deletions
@@ -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)
@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d2429e552323f33b2e8feb64f8ed222752546dbacaab15c649bd0fe85900024d
size 111841
oid sha256:333cd9be32f2a653d622db63d36697c31913a8bb29a3175a63744d1010aa358c
size 112225