Skip to content

Commit

Permalink
AtmManager: Send trust messages only to endpoints with authenticated …
Browse files Browse the repository at this point in the history
…keys
  • Loading branch information
melvo authored and lnjX committed Jun 18, 2022
1 parent 32ccc63 commit a194a33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/client/QXmppAtmManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,5 +491,9 @@ QFuture<QXmpp::SendResult> QXmppAtmManager::sendTrustMessage(const QString &encr
QXmppMessage message;
message.setTo(recipientJid);
message.setTrustMessageElement(trustMessageElement);
return client()->send(std::move(message));

QXmppSendStanzaParams params;
params.setAcceptedTrustLevels(TrustLevel::Authenticated);

return client()->send(std::move(message), params);
}

0 comments on commit a194a33

Please sign in to comment.