From 1a237557ff3f927b5385821ba1ca1af820a69b2a Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Thu, 29 Jul 2021 10:19:24 +1000 Subject: [PATCH] Add documentation --- SessionSnodeKit/SnodeAPI.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SessionSnodeKit/SnodeAPI.swift b/SessionSnodeKit/SnodeAPI.swift index afef979ee..fe15bccf5 100644 --- a/SessionSnodeKit/SnodeAPI.swift +++ b/SessionSnodeKit/SnodeAPI.swift @@ -413,6 +413,11 @@ public final class SnodeAPI : NSObject { private static func getMessagesInternal(from snode: Snode, associatedWith publicKey: String) -> RawResponsePromise { let storage = SNSnodeKitConfiguration.shared.storage + + // NOTE: All authentication logic is currently commented out, the reason being that we can't currently support + // it yet for closed groups. The Storage Server requires an ed25519 key pair, but we don't have that for our + // closed groups. + // guard let userED25519KeyPair = storage.getUserED25519KeyPair() else { return Promise(error: Error.noKeyPair) } // Get last message hash storage.pruneLastMessageHashInfoIfExpired(for: snode, associatedWith: publicKey)