Skip to main content

decodePatches

amiudmodz


amiudmodz / decodePatches

Function: decodePatches()

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

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

Parameters​

name​

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

syncds​

ISyncdPatch[]

initial​

LTHashState

getAppStateSyncKey​

FetchAppStateSyncKey

options​

RequestInit

minimumVersionNumber?​

number

logger?​

ILogger

validateMacs?​

boolean = true

Returns​

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