Increase max number of blocked users loaded from 100 to 1,000 (#4721)
Also includes a little refactor of how the requests are made & how the blocked users are stored
This commit is contained in:
@@ -126,10 +126,9 @@ void IgnoresPage::onShow()
|
||||
}
|
||||
|
||||
QStringList users;
|
||||
users.reserve(user->blocks().size());
|
||||
|
||||
auto blocks = app->accounts->twitch.getCurrent()->accessBlocks();
|
||||
|
||||
for (const auto &blockedUser : *blocks)
|
||||
for (const auto &blockedUser : user->blocks())
|
||||
{
|
||||
users << blockedUser.name;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user