feat: Remove locking from the BTBV trust manager

This commit is contained in:
2023-06-17 17:47:07 +02:00
parent dad85b8467
commit ed0701bdcd
4 changed files with 102 additions and 114 deletions

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