matrix-dart-sdk/lib/encryption
Krille 6cd40d3f91
fix: Megolm sessions become invalid after restarting client
This bug seems to be in the
sdk for 5 years already without
anyone noticing. The method
loadInboundGroupSession
seems to return the wrong
variable when loading the
session from the key. While
the outboundgroupsession
loading method relies on
an inbound group session, it
silently marks the outbound
group session as invalid on
every restart and creates a
new one. This means we never
reuse megolm sessions after
restarting the client.

Fixing this will probably reduce
the amount of megolm sessions
used in a conversation by a lot
which could improve the
performance and make the
key backup more reliable.
2025-02-04 10:12:58 +01:00
..
utils refactor: Fix new lints from flutter 3.27 2024-12-15 12:21:26 +01:00
cross_signing.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
encryption.dart refactor: Use Event instead of EventUpdate for storing in db 2025-01-07 14:56:04 +01:00
key_manager.dart fix: Megolm sessions become invalid after restarting client 2025-02-04 10:12:58 +01:00
key_verification_manager.dart refactor: Do not use eventupdate type for verification requests 2025-01-07 12:36:49 +01:00
olm_manager.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00
ssss.dart chore: add require trailing comma lint 2024-11-07 16:13:37 +01:00