diff options
author | Tobias Fella <fella@posteo.de> | 2022-02-26 18:48:53 +0100 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-02-26 18:59:59 +0100 |
commit | ccff9edb1c7102cfcc846561a3bdc41fc1496df9 (patch) | |
tree | 7dceaf3006c494d5049477b2f04baaa44091dc4d /lib/csapi/wellknown.cpp | |
parent | 62039b527507aa6c45fbf7ac787da6234d2faac3 (diff) | |
download | libquotient-ccff9edb1c7102cfcc846561a3bdc41fc1496df9.tar.gz libquotient-ccff9edb1c7102cfcc846561a3bdc41fc1496df9.zip |
Handle to-device messages before handling roomdata
Probably improves the performance slightly
If we handle to room data first, if a message arrives at the same time as the to-device message containing the key and we handle the message first, it will not be decryptable and stored as undecrypted. Then, when the key is handled, the cache of undecrypted messages is searched, the message decrypted and replaced.
When handling the key first, the message can be decryped instantly.
Diffstat (limited to 'lib/csapi/wellknown.cpp')
0 files changed, 0 insertions, 0 deletions