mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-07-18 04:44:07 +00:00
12 lines
370 B
Dart
12 lines
370 B
Dart
import 'package:mutex/mutex.dart';
|
|
|
|
/// Unified lock for all Signal protocol operations (encryption, decryption, session management).
|
|
final lockingSignalProtocol = Mutex();
|
|
|
|
/// Tracking users who have already been resynced in the current session.
|
|
final resyncedUsers = <int>{};
|
|
|
|
/// Reset the resync tracking set.
|
|
void resetResyncedUsers() {
|
|
resyncedUsers.clear();
|
|
}
|