some concurrency additions (#2698)

This commit is contained in:
fourtf
2021-05-01 13:38:58 +02:00
committed by GitHub
parent 345bcdb963
commit 8b3f301c50
10 changed files with 84 additions and 54 deletions
+4 -6
View File
@@ -697,13 +697,11 @@ void UserInfoPopup::updateUserData()
// get ignore state
bool isIgnoring = false;
for (const auto &blockedUser : currentUser->getBlocks())
if (auto blocks = currentUser->accessBlockedUserIds();
blocks->find(user.id) != blocks->end())
{
if (user.id == blockedUser.id)
{
isIgnoring = true;
break;
}
isIgnoring = true;
}
// get ignoreHighlights state
+4 -1
View File
@@ -123,7 +123,10 @@ void IgnoresPage::onShow()
}
QStringList users;
for (const auto &blockedUser : user->getBlocks())
auto blocks = app->accounts->twitch.getCurrent()->accessBlocks();
for (const auto &blockedUser : *blocks)
{
users << blockedUser.name;
}