Skip to content

Commit f549216

Browse files
committed
Fix sharing device keys
1 parent c4028be commit f549216

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mautrix/crypto/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def get_device_keys(self, user_id: UserID, device_id: DeviceID) -> DeviceKeys:
8282
device_id=device_id,
8383
algorithms=[EncryptionAlgorithm.OLM_V1, EncryptionAlgorithm.MEGOLM_V1],
8484
keys={
85-
KeyID(algorithm=EncryptionKeyAlgorithm(algorithm), key_id=key): key
85+
KeyID(algorithm=EncryptionKeyAlgorithm(algorithm), key_id=device_id): key
8686
for algorithm, key in self.identity_keys.items()
8787
},
8888
signatures={},

0 commit comments

Comments
 (0)