Skip to main content

client_of

Function client_of 

Source
pub(crate) fn client_of<'a>(
    tags: impl IntoIterator<Item = &'a [String]>,
) -> Option<Client>
Expand description

What the event with tags says it was written with: the name in the first client tag (NIP-89), and, if the address of a handler event follows it, that, with the relay named after it.

The name is whatever whoever signed the event put there, so it is made fit for one line: without what does not print or turns the writing around, the space within it single, and cut where it is long. None when there is no such tag or nothing is left of its name.