Skip to content

Commit

Permalink
Streamline creator mapping for subconvs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdimjasevic committed Feb 2, 2023
1 parent 01551c3 commit 60789ce
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions services/galley/src/Galley/API/MLS/Message.hs
Original file line number Diff line number Diff line change
Expand Up @@ -951,13 +951,7 @@ processInternalCommit qusr senderClient con lConvOrSub epoch action senderRef co
unless (isClientMember (mkClientIdentity qusr creatorClient) (mcMembers parentConv)) $
throwS @'MLSSubConvClientNotInParent
let creatorRef = fromMaybe senderRef updatePathRef
addKeyPackageRef creatorRef qusr creatorClient $
tUntagged (convOfConvOrSub . idForConvOrSub <$> lConvOrSub)
addMLSClients
(cnvmlsGroupId mlsMeta)
qusr
(Set.singleton (creatorClient, creatorRef))
-- uninitialised conversations should contain exactly one client
updateKeyPackageMapping lConvOrSub qusr creatorClient Nothing creatorRef
(_, _, _, _) ->
throw (InternalErrorWithDescription "Unexpected creator client set")
pure $ pure () -- no key package ref update necessary
Expand Down

0 comments on commit 60789ce

Please sign in to comment.