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:
nerix
2023-07-23 13:26:12 +02:00
committed by GitHub
parent a440f0261a
commit fca57696bb
12 changed files with 267 additions and 85 deletions
+2 -3
View File
@@ -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;
}