fix: Track ratchet sessions using the (jid, device) tuple

This commit is contained in:
PapaTutuWawa committed 2022-08-06 11:25:41 +02:00
1 parent f8830b974b
commit 189d823c87
2 files changed
+29 -9

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ void main() {
(await aliceSession.getDevice()).id,
aliceMessage.encryptedKeys,
);
final aliceOld = aliceSession.getRatchet((await bobSession.getDevice()).id);
final aliceOld = aliceSession.getRatchet(bobJid, (await bobSession.getDevice()).id);
final aliceSerialised = await aliceOld.toJson();
final aliceNew = OmemoDoubleRatchet.fromJson(aliceSerialised);