mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
fix: sending SERVER_ACK to messages.update (#1101)
Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
This commit is contained in:
committed by
GitHub
parent
588de6ce10
commit
cfbfcd8e14
@@ -637,7 +637,7 @@ export const makeMessagesRecvSocket = (config: SocketConfig) => {
|
|||||||
(
|
(
|
||||||
// basically, we only want to know when a message from us has been delivered to/read by the other person
|
// basically, we only want to know when a message from us has been delivered to/read by the other person
|
||||||
// or another device of ours has read some messages
|
// or another device of ours has read some messages
|
||||||
status > proto.WebMessageInfo.Status.DELIVERY_ACK ||
|
status >= proto.WebMessageInfo.Status.SERVER_ACK ||
|
||||||
!isNodeFromMe
|
!isNodeFromMe
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
|||||||
@@ -316,6 +316,7 @@ export const generateMdTagPrefix = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const STATUS_MAP: { [_: string]: proto.WebMessageInfo.Status } = {
|
const STATUS_MAP: { [_: string]: proto.WebMessageInfo.Status } = {
|
||||||
|
'sender': proto.WebMessageInfo.Status.SERVER_ACK,
|
||||||
'played': proto.WebMessageInfo.Status.PLAYED,
|
'played': proto.WebMessageInfo.Status.PLAYED,
|
||||||
'read': proto.WebMessageInfo.Status.READ,
|
'read': proto.WebMessageInfo.Status.READ,
|
||||||
'read-self': proto.WebMessageInfo.Status.READ
|
'read-self': proto.WebMessageInfo.Status.READ
|
||||||
|
|||||||
Reference in New Issue
Block a user