From 4bf1e63d6d8757607df641c88f424eb0b89c9ac1 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Fri, 18 Sep 2020 16:59:29 +1000 Subject: [PATCH] Fix sender key requesting mechanism --- .../Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SignalServiceKit/src/Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift b/SignalServiceKit/src/Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift index 7c826844a..13df2c6b7 100644 --- a/SignalServiceKit/src/Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift +++ b/SignalServiceKit/src/Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift @@ -241,8 +241,8 @@ public final class ClosedGroupsProtocol : NSObject { case .new: return !(closedGroupUpdate.name ?? "").isEmpty && !(closedGroupUpdate.groupPrivateKey ?? Data()).isEmpty && !closedGroupUpdate.senderKeys.isEmpty && !closedGroupUpdate.members.isEmpty && !closedGroupUpdate.admins.isEmpty case .info: return !(closedGroupUpdate.name ?? "").isEmpty && !closedGroupUpdate.members.isEmpty && !closedGroupUpdate.admins.isEmpty // senderKeys may be empty - case .senderKey: return true - case .senderKeyRequest: return !closedGroupUpdate.senderKeys.isEmpty + case .senderKeyRequest: return true + case .senderKey: return !closedGroupUpdate.senderKeys.isEmpty } }