From 247c7178812088020a059417c4b718304d590c9a Mon Sep 17 00:00:00 2001 From: Rajeh Taher Date: Wed, 19 Nov 2025 16:30:21 +0200 Subject: [PATCH] messages, auth: rename 'contacts-tc-token' to tctoken --- src/Socket/messages-recv.ts | 2 +- src/Socket/messages-send.ts | 2 +- src/Types/Auth.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Socket/messages-recv.ts b/src/Socket/messages-recv.ts index cc79f3d5..7690fb02 100644 --- a/src/Socket/messages-recv.ts +++ b/src/Socket/messages-recv.ts @@ -919,7 +919,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => { ) await authState.keys.set({ - 'contacts-tc-token': { [from]: { token: content, timestamp } } + tctoken: { [from]: { token: content, timestamp } } }) } } diff --git a/src/Socket/messages-send.ts b/src/Socket/messages-send.ts index e529402a..adfc5a7a 100644 --- a/src/Socket/messages-send.ts +++ b/src/Socket/messages-send.ts @@ -941,7 +941,7 @@ export const makeMessagesSocket = (config: SocketConfig) => { } const contactTcTokenData = - !isGroup && !isRetryResend && !isStatus ? await authState.keys.get('contacts-tc-token', [destinationJid]) : {} + !isGroup && !isRetryResend && !isStatus ? await authState.keys.get('tctoken', [destinationJid]) : {} const tcTokenBuffer = contactTcTokenData[destinationJid]?.token diff --git a/src/Types/Auth.ts b/src/Types/Auth.ts index d6d449da..cf50ccfb 100644 --- a/src/Types/Auth.ts +++ b/src/Types/Auth.ts @@ -80,7 +80,7 @@ export type SignalDataTypeMap = { 'app-state-sync-version': LTHashState 'lid-mapping': string 'device-list': string[] - 'contacts-tc-token': { token: Buffer; timestamp?: string } + tctoken: { token: Buffer; timestamp?: string } } export type SignalDataSet = { [T in keyof SignalDataTypeMap]?: { [id: string]: SignalDataTypeMap[T] | null } }