proto: update manually to 2.3000.1020608496

This commit is contained in:
Rajeh Taher
2025-03-06 04:22:17 +02:00
parent 9a175a6a08
commit 99142aac96
17 changed files with 89037 additions and 20777 deletions

View File

@@ -217,13 +217,13 @@ export const decodeSyncdMutations = async(
const syncAction = proto.SyncActionData.decode(result)
if(validateMacs) {
const hmac = hmacSign(syncAction.index, key.indexKey)
const hmac = hmacSign(syncAction.index!, key.indexKey)
if(Buffer.compare(hmac, record.index!.blob!) !== 0) {
throw new Boom('HMAC index verification failed')
}
}
const indexStr = Buffer.from(syncAction.index).toString()
const indexStr = Buffer.from(syncAction.index!).toString()
onMutation({ syncAction, index: JSON.parse(indexStr) })
ltGenerator.mix({