Do not process messages while pending restore decision.

This commit is contained in:
Cody Henthorne
2025-04-23 16:44:15 -04:00
parent 91140c41fd
commit a53479e50d
2 changed files with 59 additions and 46 deletions

View File

@@ -86,7 +86,10 @@ class RegistrationValues internal constructor(store: KeyValueStore) : SignalStor
store.beginWrite()
.putBlob(RESTORE_DECISION_STATE, newValue.encode())
.apply()
AppDependencies.incomingMessageObserver.notifyRegistrationStateChanged()
if (newValue.isTerminal) {
AppDependencies.incomingMessageObserver.notifyRestoreDecisionMade()
}
}
}
}