File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
services/galley/src/Galley/API Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -543,19 +543,18 @@ sendMLSMessage ::
543
543
F. MessageSendRequest ->
544
544
Sem r F. MLSMessageResponse
545
545
sendMLSMessage remoteDomain msr =
546
- fmap (either F. MLSMessageResponseProtocolError id )
547
- . runError
546
+ fmap (either ( F. MLSMessageResponseProtocolError . unTagged) id )
547
+ . runError @ MLSProtocolError
548
548
. fmap (either F. MLSMessageResponseError id )
549
549
. runError
550
550
. fmap (either (F. MLSMessageResponseProposalFailure . pfInner) id )
551
551
. runError
552
552
$ do
553
553
loc <- qualifyLocal ()
554
554
let sender = toRemoteUnsafe remoteDomain (F. msrSender msr)
555
- raw <- either throw pure $ decodeMLS' (fromBase64ByteString (F. msrRawMessage msr))
556
- mapToGalleyError @ MLSMessageStaticErrors
557
- . mapError @ MLSProtocolError unTagged
558
- $ F. MLSMessageResponseUpdates . map lcuUpdate
555
+ raw <- either (throw . mlsProtocolError) pure $ decodeMLS' (fromBase64ByteString (F. msrRawMessage msr))
556
+ mapToGalleyError @ MLSMessageStaticErrors $
557
+ F. MLSMessageResponseUpdates . map lcuUpdate
559
558
<$> postMLSMessage loc (qUntagged sender) Nothing raw
560
559
561
560
class ToGalleyRuntimeError (effs :: EffectRow ) r where
You can’t perform that action at this time.
0 commit comments