Home > borogove > SerializedChat > (constructor)

SerializedChat.(constructor)

Create a serialized chat snapshot suitable for persistence.

Signature:

constructor(chatId: string, trusted: boolean, isBookmarked: boolean, avatarSha1: ArrayBuffer | null, presence: Map<string markdown="1",borogove_Presence>, displayName: string | null, uiState: borogove_UiState | null, isBlocked: boolean | null, status: borogove_Status, extensions: string | null, readUpToId: string | null, readUpToBy: string | null, notificationsFiltered: boolean | null, notifyMention: boolean, notifyReply: boolean, threads: Map<string markdown="1" | null,string>, disco: borogove_Caps | null, omemoContactDeviceIDs: number[], klass: string);

Parameters

Parameter Type Description
chatId string
trusted boolean
isBookmarked boolean
avatarSha1 ArrayBuffer | null
presence Map<string,borogove_Presence>
displayName string | null
uiState borogove_UiState | null
isBlocked boolean | null
status borogove_Status
extensions string | null
readUpToId string | null
readUpToBy string | null
notificationsFiltered boolean | null
notifyMention boolean
notifyReply boolean
threads Map<string | null,string>
disco borogove_Caps | null
omemoContactDeviceIDs number[]
klass string