WhiskeySockets / Baileys

Lightweight full-featured typescript/javascript WhatsApp Web API
https://baileys.whiskeysockets.io/
MIT License
4.07k stars 1.38k forks source link

[BUG] Label Association events not received #1093

Open CastHash532 opened 1 month ago

CastHash532 commented 1 month ago

Describe the bug Label Associations events not received

Socket Config:

const sock = makeWASocket({
        version,
        logger,
        printQRInTerminal: !usePairingCode,
        browser: Browsers.baileys('Chrome'),
        syncFullHistory: true,
        auth: {
            creds: state.creds,
            /** caching makes the store faster to send/recv messages */
            keys: makeCacheableSignalKeyStore(state.keys, logger),
        },
        msgRetryCounterCache,
        generateHighQualityLinkPreview: true,
        // ignore all broadcast messages -- to receive the same
        // comment the line below out
        // shouldIgnoreJid: jid => isJidBroadcast(jid),
        // implement to handle retries & poll updates
        getMessage,
    })

Receiving events with:

sock.ev.process(
        async(events) => {
// ...
                       if(events['labels.association']) {
                console.log('labels.association', events['labels.association'])
            }
                 }
    )
lomeliDev commented 4 weeks ago

were you able to solve it?

CastHash532 commented 3 weeks ago

Hi, sorry for not getting back earlier,

I found a work around, there's some sort of glitch, if you add\delete labels\labelAssociations when the initial sync is happening, the problem will go and labelAssociation events will be received afterwards.

ImPedro29 commented 1 week ago

Hi, sorry for not getting back earlier,

I found a work around, there's some sort of glitch, if you add\delete labels\labelAssociations when the initial sync is happening, the problem will go and labelAssociation events will be received afterwards.

It not worked to me :(