You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i guess then a related problem is that other people in the room aren't
picking up the new user/device, so the new user can't see what's going
on (and sees only 'unknown group session' errors from everyone else).
ara4n
changed the title
Vector is issuing broken O HAI messages for new users joining a megolm room
New users (& devices?) joining a megolm room are not being recognised and encrypted for (O HAI is broken?)
Sep 12, 2016
@erikjohnston was also saying that he was seeing his HS choking on O HAI message received over federation somehow and failing to wakeup the eventstream to deliver them to clients?
It looks like the m.new_device (O HAI) messages are working as intended. However there are a few race conditions when joining rooms that won't be handled by them.
As a workaround I'm think of making the following changes to the JS sdk:
Include the sender device_id in the encrypted messages.
When vector receives a message that it cannot decrypt it will send a m.new_device message to the sender device.
This means that at least it will be able to decrypt subsequent messages from that sender device.
Turns out that the issue that @ara4n was seeing was because he was using a local build of vector using a stale version of olm. This has been fixed by upgrading his version of olm.
Specifically, the m.new_device my test account sent a broken O HAI with content
{ messages: {}}
, but https://github.com/matrix-org/matrix-js-sdk/pull/200/files#diff-3d7f0c7d5957a1a25c5f62640040bb6bR873 suggests it should be spamming all my users to tell them about my new device.The text was updated successfully, but these errors were encountered: