-
Notifications
You must be signed in to change notification settings - Fork 428
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
Inbox's unread messages count not manages XEP-0422 (Message Fastening) #4037
Comments
currently MongooseIM doesn't support XEP-0422 Message Fastening you can find a list of supported XEPs here |
Hi @DenysGonchar, thanks for the quick response! In fact if I use message retraction MongooseIM replaces my previous message with a tombstone, but also increases the unread message counter of the inbox like described above, so the issue is pretty the same. |
We really just call Actually, fastening could be even trickier. Because for example, a liked message could reorder the inbox ordering, but would not update the total number of unread messages (i.e. insagram logic). So, probably we would need to use message hints and hints for not-increment and for not-set-last-message. And the best part is what to put as a last message when someone likes a message :) (could be someone liked a message or could be an actual last message). |
I would say that there are 2 approaches that can be used to count unread messages:
|
As described in the document https://xmpp.org/extensions/xep-0422.html, message fastening is used to attach additional information to existing messages, such as deletion, editing, reactions, and more.
Description:
The current implementation of MongooseIM's inbox feature does not properly handle the impact of XEP-0422 (Message Fastening) on the unread count. As a result, when a user receives a message fastening, the unread count is inaccurately increased.
Steps to Reproduce:
Expected Behavior:
The unread count for the user's inbox should not be affected by message fastenings. Receiving a message fastening should not increase the unread count.
Actual Behavior:
When an user receives a message fastening the unread count for the user's inbox is increased, indicating an incorrect number of unread messages.
The text was updated successfully, but these errors were encountered: