athilasb
athilasb
Failed to decrypt message with any known session... │ │ Session error:Error: Bad MAC Error: Bad MAC │ │ at Object.verifyMAC (/app/node_modules/libsignal/src/crypto.js:87:15) │ │ at SessionCipher.doDecryptWhisperMessage (/app/node_modules/libsignal/src/session_cipher.js:250:16) │ │ at...
That's right But this only happens in a few numbers, Can you help me how can I stop giving this bad session problem ?
In version 6.6.0 this problem does not occur
this error did not happen in version 6.6.0
If you fall into the if (reason === DisconnectReason.badSession) or if (reason === DisconnectReason.connectionReplaced) or if (reason === DisconnectReason.loggedOut) or if (lastDisconnect?. error?. output?. statusCode === DisconnectReason.conflict) There's nothing to...
``` if (connection === "close") { let reason = lastDisconnect.error ? lastDisconnect?.error?.output.statusCode : 0; if (reason === DisconnectReason.badSession) { attr = { reason: "Invalid session, restarting....", code: DisconnectReason.badSession, user :...
Worse still, I didn't find a solution for this either, it will probably only be resolved with a library update.