Skip to content

Commit df95836

Browse files
committed
messages, auth: rename 'contacts-tc-token' to tctoken
1 parent 50d410d commit df95836

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Socket/messages-recv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
919919
)
920920

921921
await authState.keys.set({
922-
'contacts-tc-token': { [from]: { token: content, timestamp } }
922+
tctoken: { [from]: { token: content, timestamp } }
923923
})
924924
}
925925
}

src/Socket/messages-send.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
941941
}
942942

943943
const contactTcTokenData =
944-
!isGroup && !isRetryResend && !isStatus ? await authState.keys.get('contacts-tc-token', [destinationJid]) : {}
944+
!isGroup && !isRetryResend && !isStatus ? await authState.keys.get('tctoken', [destinationJid]) : {}
945945

946946
const tcTokenBuffer = contactTcTokenData[destinationJid]?.token
947947

src/Types/Auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export type SignalDataTypeMap = {
8080
'app-state-sync-version': LTHashState
8181
'lid-mapping': string
8282
'device-list': string[]
83-
'contacts-tc-token': { token: Buffer; timestamp?: string }
83+
'tctoken': { token: Buffer; timestamp?: string }
8484
}
8585

8686
export type SignalDataSet = { [T in keyof SignalDataTypeMap]?: { [id: string]: SignalDataTypeMap[T] | null } }

0 commit comments

Comments
 (0)