|
|
@ -22,7 +22,7 @@ public class LokiSessionResetImplementation : NSObject, SessionResetProtocol {
|
|
|
|
guard let preKeyMessage = whisperMessage as? PreKeyWhisperMessage else { return }
|
|
|
|
guard let preKeyMessage = whisperMessage as? PreKeyWhisperMessage else { return }
|
|
|
|
guard let storedPreKey = storage.getPreKeyRecord(forContact: recipientID, transaction: transaction) else {
|
|
|
|
guard let storedPreKey = storage.getPreKeyRecord(forContact: recipientID, transaction: transaction) else {
|
|
|
|
print("[Loki] Received a friend request accepted message from a public key for which no pre key bundle was created.")
|
|
|
|
print("[Loki] Received a friend request accepted message from a public key for which no pre key bundle was created.")
|
|
|
|
throw Errors.invalidPreKey
|
|
|
|
return // FIXME: This is causing trouble when it shouldn't...
|
|
|
|
}
|
|
|
|
}
|
|
|
|
guard storedPreKey.id == preKeyMessage.prekeyID else {
|
|
|
|
guard storedPreKey.id == preKeyMessage.prekeyID else {
|
|
|
|
print("[Loki] Received a `PreKeyWhisperMessage` (friend request accepted message) from an unknown source.")
|
|
|
|
print("[Loki] Received a `PreKeyWhisperMessage` (friend request accepted message) from an unknown source.")
|
|
|
|