-
-
Notifications
You must be signed in to change notification settings - Fork 763
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
Older OMEMO messages become null
on login
#2235
Comments
In OMEMO MUC, after several logins/outs some messages disappear fully, a bunch of: But, this is a private chat created with Conversations so there's a clear message on join: Then again my testing users are online but not in the muc at the moment., yet the participants list shows them. |
Please reopen. Now they change to: |
It is fixed. The fix is a bit technical to explain, but you have duplicate encrypted messages in your IndexedDB storage. The bugfix is to properly identify a (possibly existing) locally cached and decrypted message for any incoming encrypted MAM message. This wasn't happening before, so an encrypted duplicate was created and the fact that You'll notice that the fallback message doesn't show any more with newer messages, only for the older ones that had |
I don't understand, so replacing my old normal messages with the placeholder is a feature? I'll retry... |
There weren't any messages replaced. The messages that showed null and now the placeholder were duplicates of messages that you already had. |
Are we lost in translation? I'll try again: on re-login the chat had ONLY placeholder messages at the correct time for the correct contacts. There are no duplicate messages, nor did I say there where. |
I tried to explain the underlying issue I fixed to you. I believe it's the same bug that you noticed originally, because it fixed messages appearing as The fact that you now only see placeholder messages might because you no longer had the decrypted local copies or the keys to decrypt the ones coming from MAM. I'm not sure, but AFAIK this bug is fixed. |
I see, so i'll have to open a new issue with "old messages" get corrupted then. Fun fact, MAM ones (eg. Leave muc, write from other members, open MUC) show up fine, just the already existing ones get lost. |
HEAD (4dedfdb), Firefox 80, using IndexDB
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Older messages are available
Actual behavior
All past messages (both from me and my contacts) are replaced with
null
Moreover in 1:1, all the messages are deleted, only the last one is kept, but it's actually the string
null
Sometimes some messages are not corrupted, but on the next login they'll be.
OMEMO MUC, 2 console messages: first, second
OMEMO 1:1, 2 console messages: first, second
The text was updated successfully, but these errors were encountered: