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 } }