QXmpp::Messages::BodyOnlyMessage Class
class QXmpp::Messages::BodyOnlyMessage| Header: | #include <QXmppMessages.h> |
| Since: | QXmpp 1.18 |
Public Functions
| void | allowLowRiskElements() |
Detailed Description
Input and result of the PrepareBodyOnly hook.
message() is the message for the recipients of an encryption protecting only the body. Its body is encrypted. Its other sensitive elements are sent in the clear if their namespace is in unprotectedNamespaces(), else they are dropped. The subject and the thread are in the namespace of the stanza (jabber:client), which can not be allowed, so they are always dropped for these recipients.
The stanza is shared with the recipients of other encryptions, e.g. OMEMO 2 in the same stanza. Thus, its public elements (e.g. processing hints, the origin ID and the attributes) are taken from the original message, changes of them in message() have no effect.
Member Function Documentation
void BodyOnlyMessage::allowLowRiskElements()
Allows the elements of low privacy impact in the clear: chat states (XEP-0085: Chat State Notifications), corrections (XEP-0308: Last Message Correction), delivery receipts (XEP-0184: Message Delivery Receipts), chat markers (XEP-0333: Chat Markers), retractions (XEP-0424: Message Retraction), fallback indications (XEP-0428: Fallback Indication) and replies (XEP-0461: Message Replies). The server can see when the user is typing and which messages are corrected, retracted, read or replied to, but not their content.