Refactored TwitchChannel

This commit is contained in:
fourtf
2018-07-15 20:28:54 +02:00
parent 111853c574
commit 1614b11e42
11 changed files with 268 additions and 247 deletions
+2 -2
View File
@@ -155,7 +155,7 @@ void TwitchServer::forEachChannelAndSpecialChannels(std::function<void(ChannelPt
func(this->mentionsChannel);
}
std::shared_ptr<Channel> TwitchServer::getChannelOrEmptyByID(const QString &channelID)
std::shared_ptr<Channel> TwitchServer::getChannelOrEmptyByID(const QString &channelId)
{
std::lock_guard<std::mutex> lock(this->channelMutex);
@@ -166,7 +166,7 @@ std::shared_ptr<Channel> TwitchServer::getChannelOrEmptyByID(const QString &chan
auto twitchChannel = std::dynamic_pointer_cast<TwitchChannel>(channel);
if (!twitchChannel) continue;
if (twitchChannel->getRoomID() == channelID) {
if (twitchChannel->getRoomId() == channelId) {
return twitchChannel;
}
}