diff options
| author | Linus Jahn <lnj@kaidan.im> | 2021-09-03 18:35:38 +0200 |
|---|---|---|
| committer | Linus Jahn <lnj@kaidan.im> | 2021-09-03 20:42:34 +0200 |
| commit | 09571ab88bbf8aa7f29b09036efe2b86688bd7d3 (patch) | |
| tree | 2d3493109f978cb675b690e0171a0c3ec1a00bb5 /src/base/QXmppFutureUtils_p.h | |
| parent | 040b7d9a8c7625f93e93690e47dbabb71ff87fd7 (diff) | |
| download | qxmpp-09571ab88bbf8aa7f29b09036efe2b86688bd7d3.tar.gz | |
Adapt IQ parsing to new packet sending
Remove now unused QXmpp::PacketState.
Diffstat (limited to 'src/base/QXmppFutureUtils_p.h')
| -rw-r--r-- | src/base/QXmppFutureUtils_p.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/base/QXmppFutureUtils_p.h b/src/base/QXmppFutureUtils_p.h index 0cad95f5..f63e30b2 100644 --- a/src/base/QXmppFutureUtils_p.h +++ b/src/base/QXmppFutureUtils_p.h @@ -34,7 +34,8 @@ // We mean it. // -#include <QXmppIq.h> +#include "QXmppIq.h" +#include "QXmppSendResult.h" #include <memory> #include <variant> @@ -147,10 +148,10 @@ auto parseIq(Input &&sendResult, Converter convert) -> decltype(convert({})) } return convert(std::move(iq)); }, - [](QXmpp::PacketState) -> Result { + [](QXmpp::SendError error) -> Result { using Error = QXmppStanza::Error; return Error(Error::Wait, Error::UndefinedCondition, - QStringLiteral("Couldn't send request: lost connection.")); + QStringLiteral("Couldn't send request: ") + error.text); }, }, sendResult); |
