Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sending SERVER_ACK to messages.update #1101

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Socket/messages-recv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,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
// or another device of ours has read some messages
status > proto.WebMessageInfo.Status.DELIVERY_ACK ||
status >= proto.WebMessageInfo.Status.SERVER_ACK ||
!isNodeFromMe
)
) {
Expand Down
1 change: 1 addition & 0 deletions src/Utils/generics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ export const generateMdTagPrefix = () => {
}

const STATUS_MAP: { [_: string]: proto.WebMessageInfo.Status } = {
'sender': proto.WebMessageInfo.Status.SERVER_ACK,
MateusFrFreitas marked this conversation as resolved.
Show resolved Hide resolved
'played': proto.WebMessageInfo.Status.PLAYED,
'read': proto.WebMessageInfo.Status.READ,
'read-self': proto.WebMessageInfo.Status.READ
Expand Down
Loading