Amarula.Chat (amarula v0.1.0)

View Source

A chat update derived from app-state sync — the consumer view of a mutation to a conversation. address is the chat (Amarula.Address: 1:1 or group); the other fields are the change carried by the mutation (nil = unchanged).

Produced by Amarula.Protocol.AppState.SyncAction.decode/1 and surfaced to the consumer as {:whatsapp, :chats_update, [%Chat{}]}.

Summary

Types

t()

@type t() :: %Amarula.Chat{
  address: Amarula.Address.t(),
  archived: boolean() | nil,
  deleted: boolean() | nil,
  mute_end: integer() | nil,
  pinned: boolean() | nil,
  unread: integer() | nil
}