-
-
Notifications
You must be signed in to change notification settings - Fork 781
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
Sending receipts for messages fetched from the archive #1896
Comments
On investigating this, I think the IF statement for sendReceiptStanza needs to check if the original stanza isMAMMessage. converse.js/src/headless/converse-chat.js Line 814 in 34c4b2a
|
Thanks @deleolajide, looks like you're right: https://xmpp.org/extensions/xep-0184.html#when-archive |
* fix issue #1896 * Added issue to CHANGES.md
* fix issue #1896 * Added issue to CHANGES.md
@jcbrand It seems that this issue is not fixed. I observe the same behaviour on self-hosted conversejs build which is built from the current master. |
Thanks @vampik, I think I've fixed the issue now, could you please double check? |
@jcbrand this seemed to work until I unchecked "This is a trusted device". Now the archive continues to be filled on every login... |
I don't see anything in the code to indicate that trusted mode is related to sending receipts to MAM messages. |
I think in trusted mode the history is cached. If trusted mode is off than the history is not cached and is loaded from the server on every login, causing sending receipts on every login. |
The whole point of this bugfix is to not send receipts for MAM messages, so your issue should be fixed by it. |
But every time I log in with "This is a trusted device" unchecked, the messages are fetched from the archive and receipts for them are sent. That's what I'm talking about. |
Did you actually test this fix? b511f1d It should prevent receipts from being sent when messages are fetched from the archive. |
Yes, this is my latest build:
|
Any ETA on fixing this? I need a web client very much, but it is unusable until this is fixed. |
Hello. Any news on fixing the critical bug? I could help with testing any time. |
Also, rename attribute from `is_receipt_request` to `is_valid_receipt_request` to avoid confusion.
@anyuta1166: I think it's fixed now, can you please check? |
Describe the bug
Every time you re-open a chatbox (one-to-one chat) and recieve a message from the MAM archive, Converse is generating one more receipt for this messages. The consequence is that the archive gets filled with receipts until only receipts are sent back instead of actual messages.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The chat history of the messages just typed. Instead, you will see the chat messages diminishing until the chat history is empty. At this point, only receipts are being sent.
The text was updated successfully, but these errors were encountered: