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

Client sometimes sends 2 read receipts #1169

Closed
malteish opened this issue Sep 5, 2024 · 0 comments
Closed

Client sometimes sends 2 read receipts #1169

malteish opened this issue Sep 5, 2024 · 0 comments

Comments

@malteish
Copy link
Collaborator

malteish commented Sep 5, 2024

While monitoring the use of handleSubmitMessage, I noticed that a message "Hi" from Alice to Bob usually results in 3 invokations of the endpoint:

  1. payload
  2. deliveryReceipt
  3. readReceipt
    (This assumes both Alice and Bob use the same delivery service)

However, sometimes handleSubmitMessage is invoked 4 times. This is the case when Bob is connected, but viewing another conversation. When switching tabs to the conversation with Alice, handleSubmitMessage is called 2 times. It should only be called once.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants