Skip to content

Commit

Permalink
move a comment closer to the commented line (#3868)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanwire authored Feb 5, 2024
1 parent e6c08a7 commit ee5058c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/galley/src/Galley/API/MLS/Message.hs
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ postMLSCommitBundleToRemoteConv ::
postMLSCommitBundleToRemoteConv loc qusr c con bundle ctype rConvOrSubId = do
-- only local users can send messages to remote conversations
lusr <- foldQualified loc pure (\_ -> throwS @'ConvAccessDenied) qusr
-- only members may send commit bundles to a remote conversation

unless (bundle.epoch == Epoch 0 && ctype == One2OneConv) $
-- only members may send commit bundles to a remote conversation
flip unless (throwS @'ConvMemberNotFound) =<< checkLocalMemberRemoteConv (tUnqualified lusr) ((.conv) <$> rConvOrSubId)

resp <-
Expand Down

0 comments on commit ee5058c

Please sign in to comment.