telepathy-qt: BaseChannel: Added custom dbus object name for room text channel.

Alexandr Akulich kaffeine at kemper.freedesktop.org
Wed May 6 01:10:28 PDT 2015


Module: telepathy-qt
Branch: master
Commit: 97cac5798920d1f4e40bc828ed2a49c05614a032
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=97cac5798920d1f4e40bc828ed2a49c05614a032

Author: Alexandr Akulich <akulichalexander at gmail.com>
Date:   Fri May  1 16:17:31 2015 +0500

BaseChannel: Added custom dbus object name for room text channel.

---

 TelepathyQt/base-channel.cpp |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/TelepathyQt/base-channel.cpp b/TelepathyQt/base-channel.cpp
index 83cfffc..43e14fc 100644
--- a/TelepathyQt/base-channel.cpp
+++ b/TelepathyQt/base-channel.cpp
@@ -58,7 +58,10 @@ struct TP_QT_NO_EXPORT BaseChannel::Private {
 
         QString baseName;
         static const QString s_channelTypePrefix = TP_QT_IFACE_CHANNEL + QLatin1String(".Type.");
-        if (channelType.startsWith(s_channelTypePrefix)) {
+
+        if ((channelType == TP_QT_IFACE_CHANNEL_TYPE_TEXT) && (targetHandleType == Tp::HandleTypeRoom)) {
+            baseName = QLatin1String("Muc");
+        } else if (channelType.startsWith(s_channelTypePrefix)) {
             baseName = channelType.mid(s_channelTypePrefix.length());
         }
 



More information about the telepathy-commits mailing list