Refactored TwitchChannel
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user