Skip to main content

Function: decodePatches()

decodePatches(name, syncds, initial, getAppStateSyncKey, options, minimumVersionNumber?, logger?, validateMacs?): Promise<{ mutationMap: ChatMutationMap; state: LTHashState; }>

Defined in: src/Utils/chat-utils.ts:406

Parameters

name

"critical_block" | "critical_unblock_low" | "regular_high" | "regular_low" | "regular"

syncds

ISyncdPatch[]

initial

LTHashState

getAppStateSyncKey

FetchAppStateSyncKey

options

AxiosRequestConfig<{}>

minimumVersionNumber?

number

logger?

ILogger

validateMacs?

boolean = true

Returns

Promise<{ mutationMap: ChatMutationMap; state: LTHashState; }>