refactor: history processing

1. fixes issue when some chats/messages are not synced
2. adds info about whether the history chunk is the latest
This commit is contained in:
Adhiraj Singh
2022-01-16 12:51:08 +05:30
parent f09e0f85cc
commit 793b23cb21
3 changed files with 78 additions and 62 deletions

View File

@@ -10,7 +10,7 @@ export * from './Events'
import type NodeCache from 'node-cache'
import { AuthenticationState, AuthenticationCreds } from './Auth'
import { AuthenticationState } from './Auth'
import { proto } from '../../WAProto'
import { CommonSocketConfig } from './Socket'
@@ -49,6 +49,7 @@ export type WABusinessHoursConfig = {
open_time?: number
close_time?: number
}
export type WABusinessProfile = {
description: string
email: string