messages, auth: rename 'contacts-tc-token' to tctoken
This commit is contained in:
@@ -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 } }
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user