Skip to content

Commit 0b69dd6

Browse files
committed
Fix deleting megolm sessions on device removal
1 parent aa8d1c8 commit 0b69dd6

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v0.19.13 (2023-04-24)
2+
3+
* *(crypto)* Fixed bug with redacting megolm sessions when device is deleted.
4+
15
## v0.19.12 (2023-04-18)
26

37
* *(bridge)* Fixed backwards-compatibility with new key deletion config options.

mautrix/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.19.12"
1+
__version__ = "0.19.13"
22
__author__ = "Tulir Asokan <[email protected]>"
33
__all__ = [
44
"api",

mautrix/crypto/device_lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def _fetch_keys(
8282

8383
if changed or len(new_devices) != len(existing_devices):
8484
if self.delete_keys_on_device_delete:
85-
for device_id in new_devices.keys() - existing_devices.keys():
85+
for device_id in existing_devices.keys() - new_devices.keys():
8686
device = existing_devices[device_id]
8787
removed_ids = await self.crypto_store.redact_group_sessions(
8888
room_id=None, sender_key=device.identity_key, reason="device removed"

0 commit comments

Comments
 (0)