From 08294c01078b268cf8235af27addb8ffb038e7cc Mon Sep 17 00:00:00 2001 From: Marat Al Date: Thu, 20 Jul 2023 18:13:21 +0200 Subject: [PATCH] Added RSH3e3d instead of mutating RSH3e3a. Added optional new `updatedCallback:` callback. --- textile/features.textile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/textile/features.textile b/textile/features.textile index 796f9485d..4c11f1b82 100644 --- a/textile/features.textile +++ b/textile/features.textile @@ -1188,7 +1188,8 @@ h3(#activation-state-machine). Activation State Machine **** @(RSH3e2a)@ Transitions to @WaitingForNewPushDeviceDetails@. *** @(RSH3e3)@ On event @SyncRegistrationFailed@: **** @(RSH3e3c)@ If the machine is in state @WaitingForRegistrationSync@ as a result of a @CalledActivate@ event, make @Push#activate@ return or call its callback with the error. -**** @(RSH3e3a)@ Otherwise, calls the @updatedCallback@ provided to @Push#activate@ with the error. +**** @(RSH3e3a)@ (deprecated) Otherwise, calls the @updateFailedCallback@ provided to @Push#activate@ with the error. +**** @(RSH3e3d)@ Otherwise, calls the @updatedCallback@ provided to @Push#activate@ with the error. **** @(RSH3e3b)@ Transitions to @AfterRegistrationSyncFailed@. ** @(RSH3f)@ State @AfterRegistrationSyncFailed@: *** @(RSH3f1)@ On events @CalledActivate@ or @GotPushDeviceDetails@: @@ -2323,7 +2324,8 @@ class Push: RSH1, RSH2 registerCallback: ((ErrorInfo?, DeviceDetails?) -> io String)?, // Only on platforms that, after first set, can update later its push // device details: - updateFailedCallback: ((ErrorInfo) ->) + updatedCallback: ((ErrorInfo) ->)?, + updateFailedCallback: ((ErrorInfo) ->) // Deprecated, see RSH3e3a and RSH3e3d ) => io ErrorInfo? // RSH2a deactivate( deregisterCallback: ((ErrorInfo?, deviceId: String?) -> io)?