fixed pausing while 1k messages are in the channel

This commit is contained in:
fourtf
2018-12-04 08:56:07 +01:00
parent a618b01c03
commit 96328a5e25
3 changed files with 22 additions and 11 deletions
+5
View File
@@ -189,6 +189,11 @@ std::shared_ptr<Channel> TwitchServer::getCustomChannel(
static auto channel =
std::make_shared<Channel>("$$$", chatterino::Channel::Type::Misc);
static auto timer = [&] {
for (auto i = 0; i < 1000; i++)
{
channel->addMessage(makeSystemMessage(QString::number(i + 1)));
}
auto timer = new QTimer;
QObject::connect(timer, &QTimer::timeout, [] {
channel->addMessage(