queryBlockedUsers method
Retrieves a list of all users that the current user has blocked.
Implementation
Future<BlockedUsersResponse> queryBlockedUsers() async {
try {
final response = await _userBlockLock.synchronized(
() => _chatApi.user.queryBlockedUsers(),
);
// Update the blocked user IDs with the latest data.
final blockedUserIds = response.blocks.map((it) => it.blockedUserId);
state.blockedUserIds = [...blockedUserIds.nonNulls];
return response;
} catch (e, stk) {
logger.severe('Error querying blocked users', e, stk);
rethrow;
}
}