Bug 463705 - Neochat stops sending encryption keys for messages after few days of using E2EE
Summary: Neochat stops sending encryption keys for messages after few days of using E2EE
Status: RESOLVED UPSTREAM
Alias: None
Product: NeoChat
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-01 20:54 UTC by Akseli Lahtinen
Modified: 2023-12-14 05:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of the error message in my Element client (12.70 KB, image/png)
2023-01-01 20:56 UTC, Akseli Lahtinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Akseli Lahtinen 2023-01-01 20:54:52 UTC
SUMMARY

Neochat stops sending keys for messages after few days of using E2EE.

When I'm chatting to someone with E2EE on in 1-1 chat, the chat works fine for a few days. 
Both users can see both messages.

After 4-5 days, Neochat stops sending the encryption keys to the other participant *and* this
can be seen in other clients too with the same account.

On Neochat, the message shows up like normal.
On Element, both users get this message: 
** Unable to decrypt: The sender's device has not sent us the keys for this message. **

After logging out and logging back in to Neochat, the keys are being sent again. 
Restarting Neochat is not enough, you have to completely log out and log back in.



STEPS TO REPRODUCE
1. Start E2EE chat with someone, either through Element or Neochat. (In my case, this same chat was started from Element long time ago)
2. E2EE works fine for few days
3. At some point, Neochat stops sending the keys to other clients. On Neochat, you can see your messages normally. Other clients cant see your message, even on your own account.
4. Log out from Neochat
5. Log back in to Neochat
6. E2EE messages can be sent normally again from Neochat, and the error is gone.

OBSERVED RESULT

E2EE keys are not being sent according to Element and other clients.

EXPECTED RESULT

E2EE keys would be sent.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 37
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.15-300.fc37.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 15,5 GiB of RAM
Graphics Processor: AMD Radeon RX 6600

ADDITIONAL INFORMATION
Using Neochat from xvitaly/matrix copr: https://copr.fedorainfracloud.org/coprs/xvitaly/matrix/
Comment 1 Akseli Lahtinen 2023-01-01 20:56:15 UTC
Created attachment 154943 [details]
Screenshot of the error message in my Element client

To note, re-requesting keys does not do anything.

I've also opened Neochat from terminal to see if there are any debug messages related to this, but I don't see anything.
Comment 2 Tobias Fella 2023-02-22 19:20:25 UTC
Closing here since we're handling it upstream at https://github.com/quotient-im/libQuotient/issues/610