BaileysEx.Signal.Device (baileys_ex v0.1.0-alpha.9)

Copy Markdown View Source

Device discovery and caching for message fanout.

Summary

Functions

Collects linked devices for recipient sets, loading them via the signal store or via USync device info packets.

Types

context()

@type context() :: %{
  :signal_store => BaileysEx.Signal.Store.t(),
  optional(:query_fun) => (BaileysEx.BinaryNode.t() ->
                             {:ok, BaileysEx.BinaryNode.t()} | {:error, term()}),
  optional(:socket) => GenServer.server(),
  optional(atom()) => term()
}

Functions

get_devices(context, jids, opts \\ [])

@spec get_devices(context(), [String.t()], keyword()) ::
  {:ok, context(), [String.t()]} | {:error, term()}

Collects linked devices for recipient sets, loading them via the signal store or via USync device info packets.