QXmpp::Messages::ResolveRecipients Struct
struct QXmpp::Messages::ResolveRecipients| Header: | #include <QXmppMessages.h> |
Detailed Description
Asynchronous hook run for each outgoing message that is encrypted. The recipients are QXmppSendStanzaParams::encryptionJids() or else the bare JID of the addressee. Handlers can add recipients, e.g. the members of a MUC, and may wait for them to be retrieved. Handlers can make sending fail with QXmpp::Messages::OutgoingMessage::setError().
QXmppMucManagerV2 encrypts messages to joined rooms for the real JIDs of the occupants. In members-only rooms, all members, admins and owners are added, also if they are offline (XEP-0384: OMEMO Encryption). The lists are retrieved before the first encrypted message after joining and are kept up to date afterwards. Messages to anonymous rooms can not be encrypted and fail.