fix: patch proto sync receipts

This commit is contained in:
Adhiraj Singh
2022-04-03 00:15:06 +05:30
parent f9ffb0f4c8
commit 64bab02b7c
2 changed files with 7 additions and 2 deletions

View File

@@ -85,10 +85,14 @@ export const makeMessagesSocket = (config: SocketConfig) => {
tag: 'receipt',
attrs: {
id: messageIds[0],
t: Date.now().toString(),
to: jid,
},
}
const isProtoReceipt = type === 'hist_sync' || type === 'peer_msg'
if(!isProtoReceipt) {
node.attrs.t = Date.now().toString()
}
if(type) {
node.attrs.type = type
}