WhiskeySockets / Baileys

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

Missing votes (pollUpdateMessages) in messaging-history.set #561

Open ElkinSantiana opened 11 months ago

ElkinSantiana commented 11 months ago

Describe the bug There's an issue where only pollCreationMessages are received, and not pollUpdateMessages when going through the messaging history.

To Reproduce Steps to reproduce the behavior:

  1. Created a new connection
  2. Navigate to the messaging history.
  3. Iterate through each message returned by the history.
  4. Observe that only pollCreationMessages are received, and there are no instances of pollUpdateMessages.

Expected behavior When going through the messaging history, both pollCreationMessages and votes should be received. The connection should accurately reflect the updates related to polls, including relevant voting information.

Environment:

Additional context Using latest stable version of Baileys

PurpShell commented 10 months ago

For anyone who thought this was an issue please look at message.pollUpdates, not IMessage.pollUpdates

Kagirim commented 10 months ago

For anyone who thought this was an issue please look at message.pollUpdates, not IMessage.pollUpdates

message.pollUpdates is always an empty array and i dont think it is by design since message also doesnt have an actual message/payload (message.message doesnt exist) eg

message WebMessageInfo { messageStubParameters: [ '171820427@s.whatsapp.net' ], labels: [], userReceipt: [], reactions: [], pollUpdates: [], key: MessageKey { remoteJid: '1203631255@g.us', fromMe: true, id: '2F0D833BE8A34A2DA746C0B' }, messageTimestamp: Long { low: 1706359133, high: 0, unsigned: true }, messageStubType: 32 }

the log is history received {"level":20,"time":"2024-01-27T15:37:59.529Z","pid":1057033,"hostname":"kagirim","messages":130,"msg":"synced messages"} {"level":20,"time":"2024-01-27T15:37:59.530Z","pid":1057033,"hostname":"kagirim","update":{"starred":true},"msg":"got update for non-existent message"} {"level":20,"time":"2024-01-27T15:37:59.530Z","pid":1057033,"hostname":"kagirim","update":{"starred":true},"msg":"got update for non-existent message"}

PurpShell commented 6 months ago

Hey! Will assign this to myself so I don't forget! I will (in the following days) try to see if this possible to work out. I will testing linking on official WA Web and see how they receive the data.

kingIZZZY commented 2 days ago

+1 Bump 🙏