Pure device-discovery decisions for outbound messages.
The worker remains responsible for USync I/O, cache reads, and logging. This module builds query identities and turns those inputs into normalized recipient and linked-device target sets.
Summary
Functions
Selects the preferred local identity for cache and fanout resolution.
Builds the USync query set for a recipient and all local identity families.
Resolves normalized recipient, linked-device, and aggregate device sets.
Resolves USync devices for one identity, preferring its current JID family.
Types
Functions
Selects the preferred local identity for cache and fanout resolution.
Builds the USync query set for a recipient and all local identity families.
@spec resolve(resolution_context()) :: resolution()
Resolves normalized recipient, linked-device, and aggregate device sets.
Resolves USync devices for one identity, preferring its current JID family.