Amarula.RetryCache.Step (amarula v0.1.0)

View Source

The built-in send-pipeline step that records each outgoing message in the Amarula.RetryCache, so it can be re-encrypted and resent if the recipient asks for a retry. Attached by default (see Amarula.Conn); a side-effect step that never transforms or halts.

Expects the send ctx to carry :retry_cache (scope), :profile, :msg_id, :message, :to, and (optionally) :stanza_attrs.

Summary

Functions

Record the outgoing message, then continue unchanged.

Functions

record(ctx)

@spec record(map()) :: {:cont, map()}

Record the outgoing message, then continue unchanged.