Skip to content

Commit

Permalink
Revert "γ‚ž π†πšπ›π«π’πžπ₯ 𝐒𝐀 ぁ"
Browse files Browse the repository at this point in the history
This reverts commit 720ec0a.
  • Loading branch information
BrunoSobrino committed Oct 6, 2024
1 parent 49536fb commit e55c206
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libraries/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Ciphertext error fix and additional improvements by @BrunoSobrino
* See: https://github.com/BrunoSobrino
*/
const { BufferJSON, isJidBroadcast, WAMessageStubType, updateMessageWithReceipt, updateMessageWithReaction, jidNormalizedUser, proto } = (await import('baileys')).default;
const { BufferJSON, proto, isJidBroadcast, WAMessageStubType, updateMessageWithReceipt, updateMessageWithReaction, jidNormalizedUser } = (await import('baileys')).default;

const TIME_TO_DATA_STALE = 5 * 60 * 1000;

Expand Down Expand Up @@ -70,7 +70,7 @@ function makeInMemoryStore() {
for (const msg of newMessages) {
const jid = msg.key.remoteJid?.decodeJid?.();
if (!jid || isJidBroadcast(jid)) continue;
upsertMessage(jid, WAWeb.WebMessageInfo.fromObject(msg), type);
upsertMessage(jid, proto.WebMessageInfo.fromObject(msg), type);
}
}
});
Expand Down Expand Up @@ -155,7 +155,7 @@ function makeInMemoryStore() {
function fromJSON(json) {
Object.assign(chats, json.chats);
for (const jid in json.messages) {
messages[jid] = json.messages[jid].map(m => m && WAWeb.WebMessageInfo.fromObject(m));
messages[jid] = json.messages[jid].map(m => m && proto.WebMessageInfo.fromObject(m));
}
}

Expand Down

0 comments on commit e55c206

Please sign in to comment.