Home > borogove > SerializedChat

SerializedChat class

Signature:

export class borogove_SerializedChat 

Constructors

Constructor Modifiers Description
(constructor)(chatId, trusted, isBookmarked, avatarSha1, presence, membersForName, displayName, uiState, isBlocked, status, extensions, readUpToId, readUpToBy, notificationsFiltered, notifyMention, notifyReply, threads, disco, mavUntil, omemoContactDeviceIDs, klass) Create a serialized chat snapshot suitable for persistence.

Properties

Property Modifiers Type Description
avatarSha1 ArrayBuffer | null
chatId string
disco borogove_Caps | null
displayName string | null
extensions string
isBlocked boolean
isBookmarked boolean
klass string
mavUntil string | null
membersForName Array<{displayName: string, id: string}> | null
notificationsFiltered boolean | null
notifyMention boolean
notifyReply boolean
omemoContactDeviceIDs Array<number>
presence Map<string,borogove_Presence>
readUpToBy string | null
readUpToId string | null
status borogove_Status
threads Map<string | null,string>
trusted boolean
uiState borogove_UiState

Methods

Method Modifiers Description
toChat(client, stream, persistence) Recreate a live Chat object from this serialized representation.