WhiskeySockets / Baileys

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

[BUG] error a when receiving messages from 2 whatsapp messages at the same time #1077

Open oliverrod09 opened 1 month ago

oliverrod09 commented 1 month ago

Describe the bug error a when receiving messages from 2 whatsapp messages at the same time

To Reproduce Steps to reproduce the behavior:

  1. Created a new connection
  2. create bot
  3. type from 2 phones at the same time
  4. if both are within the same second, only the first one is received by thousandths of a second.
  5. in console you will only be able to see 1 message the other one is lost
  6. event messages.upsert

Expected behavior allow both messages to reach

Environment (please complete the following information): -local server

Additional context Add any other context about the problem here.