aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/example_3_transferHandling/xmppClient.cpp4
-rw-r--r--examples/example_6_rpcClient/rpcClient.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/example_3_transferHandling/xmppClient.cpp b/examples/example_3_transferHandling/xmppClient.cpp
index adfbcfd7..9c5582e8 100644
--- a/examples/example_3_transferHandling/xmppClient.cpp
+++ b/examples/example_3_transferHandling/xmppClient.cpp
@@ -106,8 +106,8 @@ void xmppClient::slotPresenceReceived(const QXmppPresence &presence)
// if we are the recipient, or if the presence is not from the recipient,
// do nothing
- if (jidToBareJid(configuration().jid()) == recipient ||
- jidToBareJid(presence.from()) != recipient ||
+ if (QXmppUtils::jidToBareJid(configuration().jid()) == recipient ||
+ QXmppUtils::jidToBareJid(presence.from()) != recipient ||
presence.type() != QXmppPresence::Available)
return;
diff --git a/examples/example_6_rpcClient/rpcClient.cpp b/examples/example_6_rpcClient/rpcClient.cpp
index f1c907bf..dd331fba 100644
--- a/examples/example_6_rpcClient/rpcClient.cpp
+++ b/examples/example_6_rpcClient/rpcClient.cpp
@@ -66,8 +66,8 @@ void rpcClient::slotPresenceReceived(const QXmppPresence &presence)
// if we are the recipient, or if the presence is not from the recipient,
// do nothing
- if (jidToBareJid(configuration().jid()) == recipient ||
- jidToBareJid(presence.from()) != recipient ||
+ if (QXmppUtils::jidToBareJid(configuration().jid()) == recipient ||
+ QXmppUtils::jidToBareJid(presence.from()) != recipient ||
presence.type() != QXmppPresence::Available)
return;