improving TwitchChannel

This commit is contained in:
fourtf
2018-07-14 14:24:18 +02:00
parent a720c76dc0
commit 111853c574
16 changed files with 752 additions and 674 deletions
+3 -7
View File
@@ -161,16 +161,12 @@ std::shared_ptr<Channel> TwitchServer::getChannelOrEmptyByID(const QString &chan
for (const auto &weakChannel : this->channels) {
auto channel = weakChannel.lock();
if (!channel) {
continue;
}
if (!channel) continue;
auto twitchChannel = std::dynamic_pointer_cast<TwitchChannel>(channel);
if (!twitchChannel) {
continue;
}
if (!twitchChannel) continue;
if (twitchChannel->roomID == channelID) {
if (twitchChannel->getRoomID() == channelID) {
return twitchChannel;
}
}