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:
@@ -836,13 +836,7 @@ void UserInfoPopup::updateUserData()
|
||||
});
|
||||
|
||||
// get ignore state
|
||||
bool isIgnoring = false;
|
||||
|
||||
if (auto blocks = currentUser->accessBlockedUserIds();
|
||||
blocks->find(user.id) != blocks->end())
|
||||
{
|
||||
isIgnoring = true;
|
||||
}
|
||||
bool isIgnoring = currentUser->blockedUserIds().contains(user.id);
|
||||
|
||||
// get ignoreHighlights state
|
||||
bool isIgnoringHighlights = false;
|
||||
|
||||
Reference in New Issue
Block a user