Open uhoreg opened 5 months ago
https://github.com/element-hq/element-meta/issues/2389 will touch this code so that would be a good time to fix it.
Annoyingly, we did https://github.com/element-hq/element-meta/issues/2389 and seem to have forgotten about this.
This compounds https://github.com/element-hq/element-meta/issues/2356: if the sender claims a forgotten one-time key, they will keep sending messages using the broken Olm session until the recipient starts a new Olm session.
If
then Bob will try to mark the Alice as wedged, but AFAICT,
SessionManager.mark_device_as_wedged
won't do anything because it tries to mark a session with Alice as wedged, but there are no existing sessions stored, so nothing can be marked as wedged.