Add cellular backup toggle for message backup.

This commit is contained in:
Clark
2024-05-07 17:04:44 -04:00
committed by Alex Hart
parent 83c34dd4cc
commit ba4cdea75d
5 changed files with 42 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ class RemoteBackupsSettingsViewModel : ViewModel() {
val state: State<RemoteBackupsSettingsState> = internalState
fun setCanBackUpUsingCellular(canBackUpUsingCellular: Boolean) {
// TODO [message-backups] -- Update via repository?
SignalStore.backup().backupWithCellular = canBackUpUsingCellular
internalState.value = state.value.copy(canBackUpUsingCellular = canBackUpUsingCellular)
}