mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Fixed messages getting added multiple times after roomstate change.
This commit is contained in:
parent
141fdc7ca8
commit
753b2cf139
1 changed files with 5 additions and 3 deletions
|
@ -296,9 +296,11 @@ QString TwitchChannel::roomId() const
|
||||||
|
|
||||||
void TwitchChannel::setRoomId(const QString &id)
|
void TwitchChannel::setRoomId(const QString &id)
|
||||||
{
|
{
|
||||||
(*this->roomID_.access()) = id;
|
if (*this->roomID_.accessConst() != id) {
|
||||||
|
*this->roomID_.access() = id;
|
||||||
this->roomIdChanged.invoke();
|
this->roomIdChanged.invoke();
|
||||||
this->loadRecentMessages();
|
this->loadRecentMessages();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AccessGuard<const TwitchChannel::RoomModes> TwitchChannel::accessRoomModes()
|
AccessGuard<const TwitchChannel::RoomModes> TwitchChannel::accessRoomModes()
|
||||||
|
|
Loading…
Reference in a new issue