Moved online status checking logic from ChatWidgetHeader to TwitchChannel
- Channel now needs to be initialized with a name. Special cases like the emote window just sends an empty string. - ChatWidget now has a signal which is called whenever the widgets channel is changed - Changed roomID from an std::string to a QString
This commit is contained in:
@@ -263,9 +263,9 @@ void TwitchMessageBuilder::parseRoomID()
|
||||
auto iterator = this->tags.find("room-id");
|
||||
|
||||
if (iterator != std::end(this->tags)) {
|
||||
this->roomID = iterator.value().toString().toStdString();
|
||||
this->roomID = iterator.value().toString();
|
||||
|
||||
if (this->twitchChannel->roomID.empty()) {
|
||||
if (this->twitchChannel->roomID.isEmpty()) {
|
||||
this->twitchChannel->roomID = this->roomID;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user