From cedac0a9b00163deb4658281e7295a09c6047481 2016-02-01 10:16:06 From: Jan Kaluza Date: 2016-02-01 10:16:06 Subject: [PATCH] Fix leaving the room --- diff --git a/spectrum/src/frontends/slack/SlackSession.cpp b/spectrum/src/frontends/slack/SlackSession.cpp index 7e4db36d9563a1f70248e337312cb67893639dfe..d6767ff48c5d6d8dc4c094fd978af37748b8f517 100644 --- a/spectrum/src/frontends/slack/SlackSession.cpp +++ b/spectrum/src/frontends/slack/SlackSession.cpp @@ -211,7 +211,7 @@ void SlackSession::handleSlackChannelCreated(const std::string &channelId) { void SlackSession::leaveRoom(const std::string &channel) { std::string channelId = m_idManager->getId(channel); - std::string to = m_channel2jid[channel]; + std::string to = m_channel2jid[channelId]; if (to.empty()) { LOG4CXX_ERROR(logger, "Spectrum 2 is not configured to transport this Slack channel.") return;