From 6d7f32a1e54f3ca5ff404ab3e5208c325cb99430 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Tue, 26 May 2020 14:18:31 +1000 Subject: [PATCH] Add comment --- .../Session Management/LokiSessionResetImplementation.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SignalServiceKit/src/Loki/Protocol/Session Management/LokiSessionResetImplementation.swift b/SignalServiceKit/src/Loki/Protocol/Session Management/LokiSessionResetImplementation.swift index fd7d02db1..2d0d47e3f 100644 --- a/SignalServiceKit/src/Loki/Protocol/Session Management/LokiSessionResetImplementation.swift +++ b/SignalServiceKit/src/Loki/Protocol/Session Management/LokiSessionResetImplementation.swift @@ -22,6 +22,8 @@ public class LokiSessionResetImplementation : NSObject, SessionResetProtocol { guard let preKeyMessage = whisperMessage as? PreKeyWhisperMessage else { return } 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.") + // FIXME: Don't throw an error for now as a way to de-bork some existing clients. For example, Simon's Android device was + // somehow triggering this and causing iOS to discard all messages received from him. return } guard storedPreKey.id == preKeyMessage.prekeyID else {