mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +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) })
|
kind: .navigationLink { context.send(viewAction: .recoveryKey) })
|
||||||
case .incomplete:
|
case .incomplete:
|
||||||
ListRow(label: .plain(title: L10n.screenChatBackupRecoveryActionConfirm),
|
ListRow(label: .plain(title: L10n.screenChatBackupRecoveryActionConfirm),
|
||||||
|
details: .icon(BadgeView(size: 10)),
|
||||||
kind: .navigationLink { context.send(viewAction: .recoveryKey) })
|
kind: .navigationLink { context.send(viewAction: .recoveryKey) })
|
||||||
default:
|
default:
|
||||||
ListRow(label: .plain(title: L10n.commonLoading), details: .isWaiting(true), kind: .label)
|
ListRow(label: .plain(title: L10n.commonLoading), details: .isWaiting(true), kind: .label)
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class SettingsScreenViewModel: SettingsScreenViewModelType, SettingsScreenViewMo
|
|||||||
.sink { [weak self] state in
|
.sink { [weak self] state in
|
||||||
guard let self else { return }
|
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)
|
.store(in: &cancellables)
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,3 +1,3 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
version https://git-lfs.github.com/spec/v1
|
||||||
oid sha256:d2429e552323f33b2e8feb64f8ed222752546dbacaab15c649bd0fe85900024d
|
oid sha256:333cd9be32f2a653d622db63d36697c31913a8bb29a3175a63744d1010aa358c
|
||||||
size 111841
|
size 112225
|
||||||
|
|||||||
Reference in New Issue
Block a user