feat: Implement enabling and disabling devices

This commit is contained in:
2022-09-11 12:34:31 +02:00
parent d530358359
commit 12e09947f6
6 changed files with 59 additions and 4 deletions

View File

@@ -254,6 +254,9 @@ class OmemoSessionManager {
if (plaintext != null) {
// Only encrypt to devices that are trusted
if (!(await _trustManager.isTrusted(jid, deviceId))) continue;
// Onyl encrypt to devices that are enabled
if (!(await _trustManager.isEnabled(jid, deviceId))) continue;
}
final ratchetKey = RatchetMapKey(jid, deviceId);