Skip to content
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

I cannot see past encrypted messages #21868

Closed
mrlogick opened this issue Apr 21, 2022 · 4 comments
Closed

I cannot see past encrypted messages #21868

mrlogick opened this issue Apr 21, 2022 · 4 comments
Labels
T-Other Questions, user support, anything else

Comments

@mrlogick
Copy link

mrlogick commented Apr 21, 2022

I did a video to explain the problem:
[video]

test2.mp4
  • User A logs in
  • User A creates an encrypted room, writes something, and invites user B
  • User A logs out
  • User B logs in
  • User B joins the room, but he cannot see past messages

I tried logging out and coming back with both users, but I cannot see past encrypted messages.

I think the problem is due to the fact that I tried everything within the same web browser. If I try with two computers (one for each user), with both browsers online at the same time, encrypted messages do appear.

I re-tried with my own private server (with synapse), instead of matrix.org, and even with several matrix clients, but the problem still remains.

@t3chguy
Copy link
Member

t3chguy commented Apr 21, 2022

Your issue is here

User A creates an encrypted room, writes something, and invites user B
+
with both browsers online at the same time, encrypted messages do appear.

If B doesn't have devices online at this time, then you can't send them the decryption keys for the history.
This is due to Megolm featuring PFS (Perfect Forward Secrecy)

@t3chguy t3chguy added T-Other Questions, user support, anything else and removed T-Defect labels Apr 21, 2022
@mrlogick
Copy link
Author

I apologize for my poor understanding of cryptography.

In the "room settings" it is said:
Who can read history?
[*] Members only (since the point in time of selecting this option)

Also, when I'm inviting the new user Element is saying:
Invited people will be able to read old messages. (4:39 minutes of my video)

What's the point of Matrix if clients need to stay online? It should be enough that servers are online.

Is it possible to solve this?
If I already started a project, and new friends want to join my project, I need to let them see the whole history.

@t3chguy
Copy link
Member

t3chguy commented Apr 21, 2022

What's the point of Matrix if clients need to stay online?

Not online, just logged in.

When you log in you create a cryptographic keypair to which you receive encryption keys

@t3chguy
Copy link
Member

t3chguy commented Apr 21, 2022

Closing in favour of element-hq/element-meta#647 + element-hq/element-meta#1893

@t3chguy t3chguy closed this as completed Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Other Questions, user support, anything else
Projects
None yet
Development

No branches or pull requests

2 participants