Class

MatrixProfile

MatrixProfile(userId, profile)

Represents a user's profile, possibly in a room.
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.

View Source models/MatrixProfile.ts, line 7

Classes

MatrixProfile
MatrixProfile

Members

# avatarUrl

The avatar URL for the user. If the user does not have an avatar, this will be null.

View Source models/MatrixProfile.ts, line 32

# displayName

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.

View Source models/MatrixProfile.ts, line 23

# mention

A mention pill for this user.

View Source models/MatrixProfile.ts, line 38

Methods

# avatarUrl() → {string}

The avatar URL for the user. If the user does not have an avatar, this will be null.

View Source models/MatrixProfile.ts, line 85

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.

View Source models/MatrixProfile.ts, line 77

string

# mention() → {MentionPill}

A mention pill for this user.

View Source models/MatrixProfile.ts, line 92

MentionPill