Persist when signed pre key was 'acceptedByService'

// FREEBIE
This commit is contained in:
Michael Kirk 2017-04-13 17:09:40 -04:00
parent 238fd0d9f1
commit 522c191fd1
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ static const CGFloat kSignedPreKeyUpdateFailureMaxFailureDuration = 10 * 24 * 60
// Mark signed prekey as accepted by service.
[signedPreKey markAsAcceptedByService];
[storageManager storeSignedPreKey:signedPreKey.Id signedPreKeyRecord:signedPreKey];
// On success, update the "current" signed prekey state.
[storageManager setCurrentSignedPrekeyId:signedPreKey.Id];