feat: Remove locking from the BTBV trust manager

This commit is contained in:
PapaTutuWawa committed 2023-06-17 17:47:07 +02:00
1 parent dad85b8467
commit ed0701bdcd
4 files changed
+102 -114

No files matched your search

+8 -3
View File
@@ -1529,9 +1529,14 @@ void main() {
expect(bobResult1.error, null);
// Bob should have some trust state
expect(
(bobManager.trustManager as TestingTrustManager).devices[aliceJid],
await aliceManager.getDeviceId(),
await bobManager.withTrustManager(
bobJid,
(tm) async {
expect(
(tm as TestingTrustManager).devices[aliceJid],
await aliceManager.getDeviceId(),
);
},
);
});