Skip to content

Hero

Hero = object

Defined in: src/models/room-summary.ts:23

A stripped m.room.member event which contains the key renderable fields from the event, sent only in simplified sliding sync (not /v3/sync). This is very similar to MSC4186Hero from sliding-sync.ts but an internal format with camelCase rather than underscores.

optional avatarUrl?: string

Defined in: src/models/room-summary.ts:26


optional displayName?: string

Defined in: src/models/room-summary.ts:25


fromMSC4186: boolean

Defined in: src/models/room-summary.ts:32

If true, the hero is from an MSC4186 summary, in which case displayName and avatarUrl will have been set by the server if available. If false, the Hero has been constructed from a /v3/sync response, so these fields will always be undefined.


userId: string

Defined in: src/models/room-summary.ts:24