feat: Implement enabling and disabling devices

This commit is contained in:
PapaTutuWawa committed 2022-09-11 12:34:31 +02:00
1 parent d530358359
commit 12e09947f6
6 files changed
+59 -4

No files matched your search

+3
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);