telepathy-qt: BaseConnection::createChannel(): Fixed ".Requested" property setup.
Alexandr Akulich
kaffeine at kemper.freedesktop.org
Sat Aug 29 05:49:54 PDT 2015
Module: telepathy-qt
Branch: master
Commit: fd2e753a6f64e965f9e659553053d839d97f0163
URL: http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=fd2e753a6f64e965f9e659553053d839d97f0163
Author: Alexandr Akulich <akulichalexander at gmail.com>
Date: Fri Aug 14 11:55:34 2015 +0600
BaseConnection::createChannel(): Fixed ".Requested" property setup.
The property added to the request, passed to callback.
---
TelepathyQt/base-connection.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/TelepathyQt/base-connection.cpp b/TelepathyQt/base-connection.cpp
index 0c2cc5c..a943d38 100644
--- a/TelepathyQt/base-connection.cpp
+++ b/TelepathyQt/base-connection.cpp
@@ -379,7 +379,10 @@ Tp::BaseChannelPtr BaseConnection::createChannel(const QVariantMap &request, boo
return BaseChannelPtr();
}
- BaseChannelPtr channel = mPriv->createChannelCB(request, error);
+ QVariantMap requestDetails = request;
+ requestDetails[TP_QT_IFACE_CHANNEL + QLatin1String(".Requested")] = suppressHandler;
+
+ BaseChannelPtr channel = mPriv->createChannelCB(requestDetails, error);
if (error->isValid())
return BaseChannelPtr();
More information about the telepathy-commits
mailing list