element-web: Element Desktop: Duplicate message index

Description

Intermittently, messages are appearing with error: ** Unable to decrypt: Error: Duplicate message index, possible replay attack. This doesn’t always happen from a specific sender. Messages before and after the affected message generally appear correctly. Clicking Re-request encryption keys from your other sessions. has no effect. This happens on all 3 of my Element Desktop sessions.

In my case, these are not due to duplicate messages, they are due to actual messages from my contacts. I’m able to read these messages normally in Element Android. For reference, I set up all of my sessions by scanning the QR code with my Element Android session for verification. I have green shields with all contacts where this issue is occurring.

Steps to reproduce

  • Receive message on Element Desktop
  • Intermittently, messages from various senders shows error: ** Unable to decrypt: Error: Duplicate message index, possible replay attack

Describe how what happens differs from what you expected.

  • If most messages are able to be decrypted correctly, this error should not be appearing for random messages.

Logs being sent: yes

Element Desktop: element-desktop

Element Android: element-android

Version information

  • Platform: Desktop
  • OS: Ubuntu 20.04
  • Version: 1.7.20

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 13
  • Comments: 22 (1 by maintainers)

Most upvoted comments

Closing in favour of #25108

vector-im/element-ios#7499 is the cause of the actual issue

Note that this issue is S:Major and #25108 is S:Minor, so closing this one in favor of that has effectively demoted the issue.

Clearing the cache in the web version does not work for me either.