fix: Fix crash when calling getUnacknowledgedRatchets for a new Jid

This commit is contained in:
2022-08-18 16:21:53 +02:00
parent f68e45af26
commit 80e1b20f27
2 changed files with 8 additions and 7 deletions

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