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