[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [ruqola] src/ruqolacore: Fix close channel
From:       Laurent Montel <null () kde ! org>
Date:       2018-09-28 6:53:13
Message-ID: E1g5meH-0002fL-8D () code ! kde ! org
[Download RAW message or body]

Git commit 8e11b62102b3c4f5a4643318951e3359f11ba627 by Laurent Montel.
Committed on 28/09/2018 at 06:53.
Pushed by mlaurent into branch 'master'.

Fix close channel

M  +1    -9    src/ruqolacore/rocketchataccount.cpp

https://commits.kde.org/ruqola/8e11b62102b3c4f5a4643318951e3359f11ba627

diff --git a/src/ruqolacore/rocketchataccount.cpp b/src/ruqolacore/rocketchataccount.cpp
index dcc4a682..2b9b426b 100644
--- a/src/ruqolacore/rocketchataccount.cpp
+++ b/src/ruqolacore/rocketchataccount.cpp
@@ -370,15 +370,7 @@ void RocketChatAccount::leaveRoom(const QString &roomId, const QString &channelT
 
 void RocketChatAccount::hideRoom(const QString &roomId, const QString &channelType)
 {
-#ifdef USE_REASTAPI_JOB_NOTSUPPORTED_YET
-    if (channelType == QStringLiteral("c")) {
-        restApi()->leaveChannel(roomId);
-    } else if (channelType == QStringLiteral("p")) {
-        restApi()->leaveGroups(roomId);
-    } else if (channelType == QStringLiteral("d")) {
-    } else {
-        qCWarning(RUQOLA_LOG) << " unsupport hide room for type " << channelType;
-    }
+#ifdef USE_REASTAPI_JOB
     restApi()->closeChannel(roomId, channelType);
 #else
     Q_UNUSED(channelType)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic