fix: sending SERVER_ACK to messages.update (#1101)

Co-authored-by: Mateus Franchini de Freitas <mfranchini@domtec.com.br>
This commit is contained in:
contato.mateusfr@gmail.com
2025-03-01 13:17:29 -03:00
committed by GitHub
parent 588de6ce10
commit cfbfcd8e14
2 changed files with 2 additions and 1 deletions

View File

@@ -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
) )
) { ) {

View File

@@ -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