[BUG] Messages Appear Empty in Chat Interface Despite Successful Send
lucasdoctype opened this issue · comments
Description
There is a recurring issue where messages appear as empty in the chat interface, despite having content. This problem seems to occur randomly and affects the usability of the service.
Steps to Reproduce
- Send a message using the Baileys WhatsApp API.
- Observe the message in the chat interface.
- Occasionally, the message appears empty even though it was sent successfully according to the logs.
Expected Behavior
Messages sent should consistently appear with their content in the chat interface.
Actual Behavior
Some messages appear as empty boxes in the chat interface, even though the send logs confirm the message content and successful delivery.
Screenshots
Additional Information
This issue has been noticed across multiple instances and seems to be intermittent. More details can be provided upon request.
Environment
- Baileys version: "@whiskeysockets/baileys": "6.6.0",
- Node.js version: "v16.20.2"
- Operating System: Windows 11
const whatsappUpdate = await Whatsapp.findOne({
where: { id: whatsapp.id , idGraf: whatsapp.idGraf }
});
if (!whatsappUpdate) return;
const { id, name, isMultidevice } = whatsappUpdate;
const { isLatest, version } = await fetchLatestBaileysVersion();
//logger.info(`using WA v${version.join(".")}, isLatest: ${isLatest}`);
//logger.info(`isMultidevice: ${isMultidevice}`);
//logger.info(`Starting session ${name}`);
let retriesQrCode = 0;
let wsocket: Session = null;
const store = makeInMemoryStore({
logger: loggerBaileys
});
const { state, saveCreds } = await useMultiFileAuthState(whatsapp);
wsocket = makeWASocket({
logger: loggerBaileys,
printQRInTerminal: false,
auth: state as AuthenticationState,
version,
browser: ["ChatMe", "Chrome", "10.15.7"],
fireInitQueries: false,
shouldSyncHistoryMessage: () => true,
syncFullHistory: true,
generateHighQualityLinkPreview: true,
markOnlineOnConnect: false,
msgRetryCounterCache,
getMessage: async key => {
if (store) {
const msg = await store.loadMessage(key.remoteJid!, key.id!);
return msg?.message || undefined;
}
}
});
This is my WaSocket config
I didn't experience literally empty message, but I face a lot of "Waiting for this message. This may take a while." during last month. Is there a possibility that if you switch the language on your device to English, the messages might appear differently?
Any update about that?
more info
@roysG @PurpShell I don't have any updates. I still experience this issue. Could you describe your problem?