diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index 881d02842..a219ce690 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -296,9 +296,11 @@ QString TwitchChannel::roomId() const void TwitchChannel::setRoomId(const QString &id) { - (*this->roomID_.access()) = id; - this->roomIdChanged.invoke(); - this->loadRecentMessages(); + if (*this->roomID_.accessConst() != id) { + *this->roomID_.access() = id; + this->roomIdChanged.invoke(); + this->loadRecentMessages(); + } } AccessGuard TwitchChannel::accessRoomModes()