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

This commit is contained in:
2022-08-06 11:25:41 +02:00
parent f8830b974b
commit 189d823c87
2 changed files with 29 additions and 9 deletions

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);