general: revert #1665
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ export type BaileysEventMap = {
|
||||
messages: WAMessage[]
|
||||
isLatest?: boolean
|
||||
progress?: number | null
|
||||
syncType?: proto.HistorySync.HistorySyncType
|
||||
syncType?: proto.HistorySync.HistorySyncType | null
|
||||
peerDataRequestSessionId?: string | null
|
||||
}
|
||||
/** upsert chats */
|
||||
|
||||
@@ -357,11 +357,11 @@ export type MessageUpsertType = 'append' | 'notify'
|
||||
|
||||
export type MessageUserReceipt = proto.IUserReceipt
|
||||
|
||||
export type WAMessageUpdate = { update: Partial<WAMessage>; key: proto.IMessageKey }
|
||||
export type WAMessageUpdate = { update: Partial<WAMessage>; key: WAMessageKey }
|
||||
|
||||
export type WAMessageCursor = { before: WAMessageKey | undefined } | { after: WAMessageKey | undefined }
|
||||
|
||||
export type MessageUserReceiptUpdate = { key: proto.IMessageKey; receipt: MessageUserReceipt }
|
||||
export type MessageUserReceiptUpdate = { key: WAMessageKey; receipt: MessageUserReceipt }
|
||||
|
||||
export type MediaDecryptionKeyInfo = {
|
||||
iv: Buffer
|
||||
@@ -369,4 +369,4 @@ export type MediaDecryptionKeyInfo = {
|
||||
macKey?: Buffer
|
||||
}
|
||||
|
||||
export type MinimalMessage = Pick<proto.IWebMessageInfo, 'key' | 'messageTimestamp'>
|
||||
export type MinimalMessage = Pick<WAMessage, 'key' | 'messageTimestamp'>
|
||||
|
||||
+2
-2
@@ -4,7 +4,7 @@ import { proto } from '../../WAProto/index.js'
|
||||
import type { ILogger } from '../Utils/logger'
|
||||
import type { AuthenticationState, LIDMapping, SignalAuthState, TransactionCapabilityOptions } from './Auth'
|
||||
import type { GroupMetadata } from './GroupMetadata'
|
||||
import { type MediaConnInfo } from './Message'
|
||||
import { type MediaConnInfo, type WAMessageKey } from './Message'
|
||||
import type { SignalRepositoryWithLIDStore } from './Signal'
|
||||
|
||||
export type WAVersion = [number, number, number]
|
||||
@@ -137,7 +137,7 @@ export type SocketConfig = {
|
||||
* implement this so that messages failed to send
|
||||
* (solves the "this message can take a while" issue) can be retried
|
||||
* */
|
||||
getMessage: (key: proto.IMessageKey) => Promise<proto.IMessage | undefined>
|
||||
getMessage: (key: WAMessageKey) => Promise<proto.IMessage | undefined>
|
||||
|
||||
/** cached group metadata, use to prevent redundant requests to WA & speed up msg sending */
|
||||
cachedGroupMetadata: (jid: string) => Promise<GroupMetadata | undefined>
|
||||
|
||||
Reference in New Issue
Block a user