ExWapp.Message.Handler.Inbound.Sync (ExWapp v0.1.2)

Copy Markdown View Source

Ingests protocol messages that update local synchronized state.

This module owns history-sync projection, app-state key shares, and recovered placeholder messages. It does not decrypt Signal envelopes or build receipts.

Summary

Functions

Applies every supported inbound protocol-sync payload to session state.

Functions

ingest(message_data, session, state, from, id)

@spec ingest(map(), term(), map(), term(), term()) :: map()

Applies every supported inbound protocol-sync payload to session state.

own_sender? must come from trusted envelope metadata. History sync and app-state key shares are self-only protocol messages and are ignored unless the server-attested sender is one of the local account identities.

ingest(message_data, session, state, from, id, own_sender?)

@spec ingest(map(), term(), map(), term(), term(), boolean()) :: map()