Cotal TypeScript packages
    Preparing search index...

    Function resolveChatName

    • The name a chat session appears as. Highest first: flag; the name preference, so cotal config shows the same winner; then the mode's own name, with no suffix: in user mode the account name recorded at cotal login, in open and static mode the OS login. One mode's failure never falls back to another mode's rule. remedy is how this front end names a session, such as "pass --name <name>"; a refusal lists it with the remedies every front end shares.

      Parameters

      • target: Pick<MeshTarget, "mode" | "space" | "root" | "userAuth">
      • opts: {
            flag?: string;
            login?: () => string;
            preferences?: Preferences;
            remedy: string;
        }

      Returns Promise<ChatName>