mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
feat: add "receivedInitialSync" connection update
This commit is contained in:
@@ -48,6 +48,8 @@ export type AuthenticationCreds = SignalCreds & {
|
||||
platform?: string
|
||||
|
||||
processedHistoryMessages: MinimalMessage[]
|
||||
/** number of times history & app state has been synced */
|
||||
accountSyncCounter: number
|
||||
accountSettings: AccountSettings
|
||||
}
|
||||
|
||||
|
||||
@@ -51,31 +51,27 @@ export type ChatModification =
|
||||
{
|
||||
archive: boolean
|
||||
lastMessages: LastMessageList
|
||||
} |
|
||||
{
|
||||
pushNameSetting: string
|
||||
} |
|
||||
{
|
||||
pin: boolean
|
||||
} |
|
||||
{
|
||||
}
|
||||
| { pushNameSetting: string }
|
||||
| { pin: boolean }
|
||||
| {
|
||||
/** mute for duration, or provide timestamp of mute to remove*/
|
||||
mute: number | null
|
||||
} |
|
||||
{
|
||||
}
|
||||
| {
|
||||
clear: 'all' | { messages: {id: string, fromMe?: boolean, timestamp: number}[] }
|
||||
} |
|
||||
{
|
||||
}
|
||||
| {
|
||||
star: {
|
||||
messages: { id: string, fromMe?: boolean }[],
|
||||
star: boolean
|
||||
}
|
||||
} |
|
||||
{
|
||||
}
|
||||
| {
|
||||
markRead: boolean
|
||||
lastMessages: LastMessageList
|
||||
} |
|
||||
{ delete: true, lastMessages: LastMessageList }
|
||||
}
|
||||
| { delete: true, lastMessages: LastMessageList }
|
||||
|
||||
export type InitialReceivedChatsState = {
|
||||
[jid: string]: { lastMsgRecvTimestamp: number }
|
||||
|
||||
@@ -85,5 +85,4 @@ export type WABusinessProfile = {
|
||||
address?: string
|
||||
}
|
||||
|
||||
|
||||
export type CurveKeyPair = { private: Uint8Array; public: Uint8Array }
|
||||
Reference in New Issue
Block a user