mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
refactor!: cleaner message history sync
This is a breaking change, 1. three events (chats.set, contacts.set, messages.set) are now just one `messaging-history.set` event 2. no need to debounce for app state sync 3. added a new "conditional" chat update to allow for correct app state sync despite not having the chat available on hand
This commit is contained in:
@@ -535,7 +535,7 @@ export const makeSocket = ({
|
||||
const name = update.me?.name
|
||||
// if name has just been received
|
||||
if(creds.me?.name !== name) {
|
||||
logger.info({ name }, 'updated pushName')
|
||||
logger.debug({ name }, 'updated pushName')
|
||||
sendNode({
|
||||
tag: 'presence',
|
||||
attrs: { name: name! }
|
||||
|
||||
Reference in New Issue
Block a user