From 2cc51aec285e70eb60f93a30edb2b936cda4ace4 Mon Sep 17 00:00:00 2001 From: Ryan ZHAO <> Date: Mon, 18 Dec 2023 10:46:12 +1100 Subject: [PATCH] add workaround for a SS bug when getting and updating expiries --- SessionSnodeKit/Networking/SnodeAPI.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SessionSnodeKit/Networking/SnodeAPI.swift b/SessionSnodeKit/Networking/SnodeAPI.swift index 717d222f6..45a71652b 100644 --- a/SessionSnodeKit/Networking/SnodeAPI.swift +++ b/SessionSnodeKit/Networking/SnodeAPI.swift @@ -625,7 +625,7 @@ public final class SnodeAPI { let sendTimestamp: UInt64 = UInt64(SnodeAPI.currentOffsetTimestampMs()) // FIXME: There is a bug on SS now that a single-hash lookup is not working. Remove it when the bug is fixed - let serverHashes: [String] = serverHashes.appending("fakehash") + let serverHashes: [String] = serverHashes.appending("///////////////////////////////////////////") // Fake hash with valid length return SnodeAPI .send( @@ -831,6 +831,9 @@ public final class SnodeAPI { .eraseToAnyPublisher() } + // FIXME: There is a bug on SS now that a single-hash lookup is not working. Remove it when the bug is fixed + let serverHashes: [String] = serverHashes.appending("///////////////////////////////////////////") // Fake hash with valid length + return getSwarm(for: publicKey) .tryFlatMapWithRandomSnode(retry: maxRetryCount) { snode -> AnyPublisher<[String: UpdateExpiryResponseResult], Error> in SnodeAPI