A Matrix user ID.

Constructors

  • Parse/validate and create a new UserId.

    Parameters

    • id: string

    Returns UserId

Properties

localpart: string

Returns the user's localpart.

serverName: ServerName

Returns the server name of the user ID.

Methods

  • Create a clone of this UserId.

    This can be useful when passing a UserId instance to methods such as OlmMachine.updateTrackedUsers which destroy the instance.

    Returns UserId

  • Returns void

  • Whether this user ID is a historical one.

    A historical user ID is one that doesn't conform to the latest specification of the user ID grammar but is still accepted because it was previously allowed.

    Returns boolean

  • Return the user ID as a string.

    Returns string