fix: Fix crash when calling getUnacknowledgedRatchets for a new Jid

This commit is contained in:
PapaTutuWawa committed 2022-08-18 16:21:53 +02:00
1 parent f68e45af26
commit 80e1b20f27
2 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -539,7 +539,7 @@ void main() {
// Alice marks the ratchet as acknowledged
await aliceSession.ratchetAcknowledged(bobJid, await bobSession.getDeviceId());
expect(
(await aliceSession.getUnacknowledgedRatchets(bobJid)).isEmpty,
(await aliceSession.getUnacknowledgedRatchets(bobJid))!.isEmpty,
true,
);
});