general: Bring back USYNC calls for LID getting, and improve
This commit is contained in:
+2
-9
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user