kernl API
    Preparing search index...

    Function labelConversations

    • Name the people in every conversation the shell lists for an applet.

      A messaging backend knows keys; a person knows names. Each participant without a label is given the name from their published profile, read from the store or cache at once and otherwise looked up until it is found or every lookup server has answered. A participant with no profile keeps no label, so the applet still shows its own short form. A label the backend already gave is kept: it is how that provider names the person (D-031).

      Parameters

      • adapter: DmAdapter

        The composite messaging adapter kehto's dm service routes to.

      • profiles: Pick<Profiles, "settled">

        The shell's profile service.

      Returns DmAdapter

      The same adapter with participants named.

      createDmService({ adapter: labelConversations(messaging.composite(), kernl.profiles) });