matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.79k stars 2.12k forks source link

Users whose servers were unreachable when you logged in will send you undecryptable messages #2165

Open richvdh opened 7 years ago

richvdh commented 7 years ago
richvdh commented 7 years ago

It's hard to see what to do about this - Alice doesn't know that Bob's server is now reachable (if, indeed, it is), and Bob has no way to know about Alice's new device.

One possibility might be for Alice's server to tell Bob's server about the new device in the response to the to-device message.

richvdh commented 7 years ago

One possibility might be for Alice's server to tell Bob's server about the new device in the response to the to-device message.

What to-device message? Bob may not send Alice a to-device message if he doesn't know about any of her devices (though we could potentially solve that by making sure that Bob's server sends a to-device message to every other server in the room).

In any case, if Bob and Alice are having connectivity issues, then any to-device message may not get through.

So this might solve the problem in the situation that Bob was just restarting his server or having some other blip. But a more general solution ends up looking like Alice needing to ask for history in the room - ie https://github.com/vector-im/riot-web/issues/2286.

richvdh commented 6 years ago

This still exists, even though we now don't rely on to-device messages for this.