mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 17:29:32 +01:00
Provide retry UX for tier restore network failures.
This commit is contained in:
committed by
Greyson Parrelli
parent
9b527f7c6c
commit
eb44dd4318
@@ -32,6 +32,14 @@ val RestoreDecisionState.isWantingManualRemoteRestore: Boolean
|
||||
else -> false
|
||||
}
|
||||
|
||||
val RestoreDecisionState.includeDeviceToDeviceTransfer: Boolean
|
||||
get() = when (this.decisionState) {
|
||||
RestoreDecisionState.State.INTEND_TO_RESTORE -> {
|
||||
this.intendToRestoreData?.hasOldDevice == true
|
||||
}
|
||||
else -> true
|
||||
}
|
||||
|
||||
/** Has a final decision been made regarding restoring. */
|
||||
val RestoreDecisionState.isTerminal: Boolean
|
||||
get() = !isDecisionPending
|
||||
|
||||
Reference in New Issue
Block a user