general: Bring back USYNC calls for LID getting, and improve

This commit is contained in:
Rajeh Taher
2025-10-03 00:04:39 +03:00
parent 1060f44bff
commit 592f70b81d
6 changed files with 119 additions and 77 deletions
+2 -9
View File
@@ -2,7 +2,7 @@ import type { Agent } from 'https'
import type { URL } from 'url'
import { proto } from '../../WAProto/index.js'
import type { ILogger } from '../Utils/logger'
import type { AuthenticationState, SignalAuthState, TransactionCapabilityOptions } from './Auth'
import type { AuthenticationState, LIDMapping, SignalAuthState, TransactionCapabilityOptions } from './Auth'
import type { GroupMetadata } from './GroupMetadata'
import { type MediaConnInfo } from './Message'
import type { SignalRepositoryWithLIDStore } from './Signal'
@@ -145,13 +145,6 @@ export type SocketConfig = {
makeSignalRepository: (
auth: SignalAuthState,
logger: ILogger,
onWhatsAppFunc?: (...jids: string[]) => Promise<
| {
jid: string
exists: boolean
lid: string
}[]
| undefined
>
pnToLIDFunc?: (jids: string[]) => Promise<LIDMapping[] | undefined>
) => SignalRepositoryWithLIDStore
}