QXmpp::Messages::ResolveSender Struct
struct QXmpp::Messages::ResolveSender| Header: | #include <QXmppMessages.h> |
Detailed Description
Asynchronous hook run for each incoming message before it is decrypted. MUC sets the real sender here. Handlers returning QXmpp::HookResult::Stop drop the message.
It is started as soon as the message has been received, not after earlier messages of the conversation have been processed, so handlers returning without waiting see the state at the time the message was received if no earlier handler waits (e.g. the occupants of a MUC). Handlers that need to wait, e.g. for a database, return a QXmppTask. Later messages of the conversation wait for them.