15 lines
446 B
Dart
15 lines
446 B
Dart
import 'package:meta/meta.dart';
|
|
import 'package:omemo_dart/src/trust/base.dart';
|
|
|
|
/// Only use for testing!
|
|
/// An implementation of TrustManager that always trusts every device and thus
|
|
/// has no internal state.
|
|
@visibleForTesting
|
|
class AlwaysTrustingTrustManager extends TrustManager {
|
|
@override
|
|
Future<bool> isTrusted(String jid, int deviceId) async => true;
|
|
|
|
@override
|
|
Future<void> onNewSession(String jid, int deviceId) async {}
|
|
}
|