From a6908e35a5b7d1cb28cbb3b068f8f2ef838c21b5 Mon Sep 17 00:00:00 2001 From: nielsandriesse Date: Tue, 30 Jun 2020 11:47:43 +1000 Subject: [PATCH] Update documentation --- .../Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SignalServiceKit/src/Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift b/SignalServiceKit/src/Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift index f8ecf8a61..32219065a 100644 --- a/SignalServiceKit/src/Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift +++ b/SignalServiceKit/src/Loki/Protocol/Closed Groups/ClosedGroupsProtocol.swift @@ -40,9 +40,12 @@ public final class ClosedGroupsProtocol : NSObject { // the group (again fetching device links ahead of time). The user should already have established // sessions with all other members at this point because of the behavior outlined a few points above. // • When a user adds a new member to the group, they generate a ratchet for that new member and - // send that to all existing members of the group in a `ClosedGroupUpdateMessage`. They send a + // send that bundled in a `ClosedGroupUpdateMessage` to the group. They send a // `ClosedGroupUpdateMessage` with the newly generated ratchet but also the existing ratchets of // every other member of the group to the user that joined. + // • When a user kicks a member from the group, they re-generate ratchets for everyone and send + // those out to all members (minus the member that was just kicked) in a + // `ClosedGroupUpdateMessage` using established channels. public struct Ratchet { public let chainKey: String