2 Commits
Author SHA1 Message Date
PapaTutuWawa d530358359 chore: Lower meta's minimum version 2022-09-09 17:40:16 +02:00
PapaTutuWawa 0e370a8e19 refactor: Use synchronized's return 2022-09-09 17:39:28 +02:00
2 changed files with 2 additions and 8 deletions

No files matched your search

+1 -7
View File
@@ -415,13 +415,7 @@ class OmemoSessionManager {
/// Returns the device map, i.e. the mapping of bare Jid to its device identifiers /// Returns the device map, i.e. the mapping of bare Jid to its device identifiers
/// we have built sessions with. /// we have built sessions with.
Future<Map<String, List<int>>> getDeviceMap() async { Future<Map<String, List<int>>> getDeviceMap() async {
Map<String, List<int>>? map; return _lock.synchronized(() => _deviceMap);
await _lock.synchronized(() async {
map = _deviceMap;
});
return map!;
} }
/// Removes the ratchet identified by [jid] and [deviceId] from the session manager. /// Removes the ratchet identified by [jid] and [deviceId] from the session manager.
+1 -1
View File
@@ -11,7 +11,7 @@ dependencies:
collection: ^1.16.0 collection: ^1.16.0
cryptography: ^2.0.5 cryptography: ^2.0.5
hex: ^0.2.0 hex: ^0.2.0
meta: ^1.8.0 meta: ^1.7.0
pinenacl: ^0.5.1 pinenacl: ^0.5.1
synchronized: ^3.0.0+2 synchronized: ^3.0.0+2