feat: move upsertMessage in processingMutex

This commit is contained in:
Adhiraj Singh
2022-07-22 15:40:48 +05:30
parent 665e461e83
commit 7f7565b7a2

View File

@@ -474,12 +474,12 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
}
cleanMessage(msg, authState.creds.me!.id)
await upsertMessage(msg, node.attrs.offline ? 'append' : 'notify')
}
),
sendMessageAck(node)
])
await upsertMessage(msg, node.attrs.offline ? 'append' : 'notify')
}
const handleCall = async(node: BinaryNode) => {