feat: Implement a BTBV TrustManager

This commit is contained in:
2022-08-08 18:47:43 +02:00
parent dafd0af1e5
commit c1fb79a20f
6 changed files with 155 additions and 1 deletions

View File

@@ -4,4 +4,8 @@ abstract class TrustManager {
/// Return true when the device with id [deviceId] of Jid [jid] is trusted, i.e. if an
/// encrypted message should be sent to this device. If not, return false.
Future<bool> isTrusted(String jid, int deviceId);
/// Called by the OmemoSessionManager when a new session has been built. Should set
/// a default trust state to [jid]'s device with identifier [deviceId].
Future<void> onNewSession(String jid, int deviceId);
}