Applies decoded app-state mutations to local contact and chat state.
The decoder turns WhatsApp patch payloads into normalized mutation maps; this
module is the bridge that translates those maps into the project's local
ExWapp.Contact and ExWapp.Chat updates.
Summary
Functions
Replays the local side effects of an outgoing patch after server ack.
Backwards-compatible helper that treats the mutation as a SET operation.
Dispatches one decoded mutation into the appropriate local store update.
Dispatches one decoded mutation with feature-specific persistence options.
Types
Functions
@spec apply_outgoing_patch( struct(), patch_info() ) :: :ok
Replays the local side effects of an outgoing patch after server ack.
@spec apply_outgoing_patch(struct(), patch_info(), keyword()) :: :ok
@spec dispatch_mutation(struct(), [String.t()], action_value()) :: :ok | :ignored
Backwards-compatible helper that treats the mutation as a SET operation.
@spec dispatch_mutation(struct(), non_neg_integer(), [String.t()], action_value()) :: :ok | :ignored
Dispatches one decoded mutation into the appropriate local store update.
@spec dispatch_mutation( struct(), non_neg_integer(), [String.t()], action_value(), keyword() ) :: :ok | :ignored
Dispatches one decoded mutation with feature-specific persistence options.
The :max_records option controls call-log retention when the mutation
carries a CallLogRecord; other mutation types ignore it.