-
-
Notifications
You must be signed in to change notification settings - Fork 762
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
Messages both in local and servers archive appear twice #467
Comments
There have been issues in the past concerning duplicate messages, but that was before MAM support was added, so I doubt that they are related. This case should already be covered in the MAM code. There must be something special or specific about your usecase. Currently I have no idea why this would happen, so unfortunately no suggestions for you. |
Ok I'll debug it and report back here, thanks. |
Looks like it can be fixed by explicitly setting |
Whoops, still an issue.
archive_id: "c15ceae9-88f0-44d2-ab9b-e53f80558a23"
chat_state: "active"
delayed: true
fullname: "Oliver"
id: "10990045-0037-21b5-f9d5-a0cbddf58982"
message: "Kannst du das Problem mit der Nachrichtendopplung noch reproduzieren? Ich schaffe es leider gerade nicht"
msgid: "1443604483090"
sender: "me"
time: "2015-09-30T09:14:43Z" fullname: "Christoph Geschwind"
id: "a9cf96f7-96d9-50c6-0294-a9d11e831d02"
message: "Kannst du das Problem mit der Nachrichtendopplung noch reproduzieren? Ich schaffe es leider gerade nicht"
sender: "me"
time: "2015-09-30T11:14:43+02:00" The message has been sent once from me to Oliver.
I'll continue to look into it, the error occured after continuing a disconnected bosh session. |
…sionStorage, hopefully fixes conversejs#467
Could you take a look at the referenced commit above? (1st8@a06f0d2) I think the problem was, that outgoing messages had their msgid assigned when they were sent over the wire, but not when they were put into the storage, which happens before. For some extra information, I added the msgid as data attribute on the rendered chat message. Please let me know what you think, I will test the changes with my colleagues in the meantime. |
Hi @1st8, thanks for debugging this issue! Your change looks good. If you're satisfied on your side that it works, please make a pull request. |
Hey @jcbrand I would rather not rush it and give it a few more days of internal production use next week, pull request will be prepared after that, okay? Cheers! |
No problem. |
…sionStorage, hopefully fixes conversejs#467
Hi,
when using the new MAM feature, messages stored both in local and server archive appear twice.
I remember vaguely that this is a known issue, but I couldn't find one here.
Do you have a possible solution in mind that I could implement and submit as PR?
I would otherwise try to merge the messages from the two archives by ID, if thats possible, will take a look later.
Or turning off the local archive if MAM is active would be easy too, wouldn't it?
Cheers!
The text was updated successfully, but these errors were encountered: