Delayed membership responses in /sync cause UTDs #4291
Labels
A-E2EE
O-Occasional
Affects or can be seen by some users regularly or most users rarely
S-Major
Severely degrades major functionality or product features, with no satisfactory workaround
T-Defect
This outlines a race condition in the CSAPI which can cause UTDs.
Consider:
In practice, clients will not encrypt for Bob, causing a UTD if you very quickly send an encrypted message after inviting a user. This can happen due to:
To fix this, we should be remembering that we, the client, have modified the membership state of the room, and invalidate the room member list (so we hit /members again). We can't assume that a 200 OK to /invite will guarantee that the user is in an invited state, so we still need to defer to the server.
A test for this is in matrix-org/complement-crypto#98
The text was updated successfully, but these errors were encountered: