QXmpp::Mam::MessageReceived Struct
struct QXmpp::Mam::MessageReceived| Header: | #include <QXmppMamManager.h> |
| Since: | QXmpp 1.18 |
Detailed Description
Hook run for each message of a query of QXmppMamManager::retrieve() as soon as it has been processed by the message pipeline (see QXmpp::Messages), i.e. before the query has finished. This way, the messages can be shown while further ones are still retrieved. The QXmpp::Messages::ArchiveInfo attachment of the context contains the ID of the query.
Messages of a conversation are passed in the order they are sent by the archive, i.e. in chronological order or reversed if QXmpp::Mam::Query::flipPage is set and supported by the archive. Handlers returning QXmpp::HookResult::Stop consume the message, it is then not contained in the result of the query. If the query fails, the hook is still run for the messages received before.
The QXmpp::Messages::Received hook is not run for archived messages.