string based key for messages

This commit is contained in:
Adhiraj
2020-10-05 01:40:13 +05:30
parent 64c9b7449e
commit 6560fc1756
5 changed files with 10 additions and 8 deletions

View File

@@ -231,7 +231,7 @@ export class WAConnection extends Base {
chat.jid = Utils.whatsappID (chat.jid)
chat.t = +chat.t
chat.count = +chat.count
chat.messages = new KeyedDB (Utils.WA_MESSAGE_KEY, Utils.WA_MESSAGE_ID)
chat.messages = new KeyedDB (Utils.waMessageKey, Utils.WA_MESSAGE_ID)
// chats data (log json to see what it looks like)
!chats.get (chat.jid) && chats.insert (chat)