Issue one time keys in upload order (#17903)
Currently, one-time-keys are issued in a somewhat random order. (In practice, they are issued according to the lexicographical order of their key IDs.) That can lead to a situation where a client gives up hope of a given OTK ever being used, whilst it is still on the server. Related: https://github.com/element-hq/element-meta/issues/2356
Showing
- changelog.d/17903.bugfix 1 addition, 0 deletionschangelog.d/17903.bugfix
- synapse/handlers/e2e_keys.py 1 addition, 1 deletionsynapse/handlers/e2e_keys.py
- synapse/storage/databases/main/end_to_end_keys.py 23 additions, 2 deletionssynapse/storage/databases/main/end_to_end_keys.py
- synapse/storage/schema/main/delta/88/03_add_otk_ts_added_index.sql 18 additions, 0 deletions...torage/schema/main/delta/88/03_add_otk_ts_added_index.sql
- tests/handlers/test_e2e_keys.py 73 additions, 5 deletionstests/handlers/test_e2e_keys.py
Loading
Please register or sign in to comment