Packages

An independent, OTP-native WhatsApp Web client for Elixir — Noise handshake, Signal end-to-end encryption, multi-device.

Retired package: Security issue - CVE-2026-48063: spoofed self-only protocolMessages. Upgrade to >= 0.4.1

Current section

Files

Jump to
amarula lib amarula content keep.ex
Raw

lib/amarula/content/keep.ex

defmodule Amarula.Content.Keep do
@moduledoc """
A received keep-in-chat / undo (`content` of a `%Amarula.Msg{type: :keep}`).
* `:key` — the kept message as a `{jid, msg_id}` ref.
* `:kept?` — `true` to keep, `false` to undo a keep.
"""
@type t :: %__MODULE__{key: {String.t() | nil, String.t() | nil} | nil, kept?: boolean()}
@enforce_keys [:key]
defstruct [:key, kept?: false]
end