Constructor
# new MatrixProfile(userId, profile)
Creates a new profile representation for a user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
string
|
The user ID the profile is for. |
profile |
MatrixProfile
|
The profile itself. |
Classes
Members
Methods
# avatarUrl() → {string}
The avatar URL for the user. If the user does not have an avatar, this will
be null.
string
# displayName() → {string}
The display name for the user. This will always return a value, though it
may be based upon their user ID if no explicit display name is set.
string
# mention() → {MentionPill}
A mention pill for this user.