From ebbf58a05ca112b7e56df8aa072f410398a86dae Mon Sep 17 00:00:00 2001 From: Melvin Keskin Date: Mon, 7 Mar 2022 14:58:29 +0100 Subject: Add parameter 'keyOwnerJid' to trust storages' 'trustLevel()' --- src/client/QXmppTrustMemoryStorage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/QXmppTrustMemoryStorage.cpp') diff --git a/src/client/QXmppTrustMemoryStorage.cpp b/src/client/QXmppTrustMemoryStorage.cpp index 5a1b6e61..c9e2f37f 100644 --- a/src/client/QXmppTrustMemoryStorage.cpp +++ b/src/client/QXmppTrustMemoryStorage.cpp @@ -223,11 +223,11 @@ QFuture QXmppTrustMemoryStorage::setTrustLevel(const QString &encryption, return makeReadyFuture(); } -QFuture QXmppTrustMemoryStorage::trustLevel(const QString &encryption, const QByteArray &keyId) +QFuture QXmppTrustMemoryStorage::trustLevel(const QString &encryption, const QString &keyOwnerJid, const QByteArray &keyId) { const auto keys = d->keys.values(encryption); for (const auto &key : keys) { - if (key.id == keyId) { + if (key.id == keyId && key.ownerJid == keyOwnerJid) { return makeReadyFuture(std::move(QXmppTrustStorage::TrustLevel(key.trustLevel))); } } -- cgit v1.2.3