diff --git a/src/Socket/chats.ts b/src/Socket/chats.ts index 85575693..f7eae4ea 100644 --- a/src/Socket/chats.ts +++ b/src/Socket/chats.ts @@ -43,6 +43,7 @@ import { } from '../Utils' import { makeMutex } from '../Utils/make-mutex' import processMessage from '../Utils/process-message' +import { buildTcTokenFromJid } from '../Utils/tc-token-utils' import { type BinaryNode, getBinaryNodeChild, @@ -54,7 +55,6 @@ import { } from '../WABinary' import { USyncQuery, USyncUser } from '../WAUSync' import { makeSocket } from './socket.js' -import { buildTcTokenFromJid } from '../Utils/tc-token-utils' const MAX_SYNC_ATTEMPTS = 2 export const makeChatsSocket = (config: SocketConfig) => { diff --git a/src/Utils/auth-utils.ts b/src/Utils/auth-utils.ts index a326c124..529d6ed2 100644 --- a/src/Utils/auth-utils.ts +++ b/src/Utils/auth-utils.ts @@ -75,6 +75,7 @@ export function makeCacheableSignalKeyStore( const item = fetched[id] if (item) { data[id] = item + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion await cache.set(getUniqueId(type, id), item as SignalDataTypeMap[keyof SignalDataTypeMap]) } } diff --git a/src/Utils/tc-token-utils.ts b/src/Utils/tc-token-utils.ts index 2d387e7c..0e5df545 100644 --- a/src/Utils/tc-token-utils.ts +++ b/src/Utils/tc-token-utils.ts @@ -1,4 +1,4 @@ -import type { AuthenticationCreds, SignalKeyStoreWithTransaction } from '../Types' +import type { SignalKeyStoreWithTransaction } from '../Types' import type { BinaryNode } from '../WABinary' type TcTokenParams = {