mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Do not fetch recent messages and viewer list for chatrooms
This commit is contained in:
parent
e9868fdd84
commit
e7c409d9f0
2 changed files with 19 additions and 12 deletions
|
@ -123,7 +123,10 @@ void TwitchChannel::setRoomID(const QString &_roomID)
|
|||
{
|
||||
this->roomID = _roomID;
|
||||
this->roomIDchanged.invoke();
|
||||
|
||||
if (!this->name.startsWith("chatrooms:")) {
|
||||
this->fetchMessages.invoke();
|
||||
}
|
||||
}
|
||||
|
||||
void TwitchChannel::reloadChannelEmotes()
|
||||
|
|
|
@ -449,6 +449,7 @@ void Split::doOpenViewerList()
|
|||
}
|
||||
auto loadingLabel = new QLabel("Loading...");
|
||||
|
||||
if (!this->getChannel()->name.startsWith("chatrooms:")) {
|
||||
twitchApiGet("https://tmi.twitch.tv/group/user/" + this->getChannel()->name + "/chatters", this,
|
||||
[=](QJsonObject obj) {
|
||||
QJsonObject chattersObj = obj.value("chatters").toObject();
|
||||
|
@ -461,6 +462,9 @@ void Split::doOpenViewerList()
|
|||
chattersList->addItem(v.toString());
|
||||
}
|
||||
});
|
||||
} else {
|
||||
loadingLabel->hide();
|
||||
}
|
||||
|
||||
searchBar->setPlaceholderText("Search User...");
|
||||
QObject::connect(searchBar, &QLineEdit::textEdited, this, [=]() {
|
||||
|
|
Loading…
Reference in a new issue