element-hq / hydrogen-web

Lightweight matrix client with legacy and mobile browser support
Apache License 2.0
631 stars 123 forks source link

Messages appear as unverified from new devices until/after we send a message into the room #256

Open bwindels opened 3 years ago

bwindels commented 3 years ago

When a new device logs in, the server notifies of a device change, and we only mark that user as outdated but don't query their keys again to update their devices.

Now when this new device send an e2ee message, it will appear in red as unverified because we don't know about the device yet.

When we send a message in the same room, we'll update the device tracking for that user, as it was marked as outdated, and we'll now know about their device. When opening the timeline again, the first message will now appear as verified.

bwindels commented 3 years ago

There's also the contrary, where messages appear red after having sent your first message. The cause is the same.