queryUsers method
Future<QueryUsersResponse>
queryUsers({
- bool? presence,
- Filter? filter,
- List<
SortOption> ? sort, - PaginationParams? pagination,
Requests users with a given query.
Implementation
Future<QueryUsersResponse> queryUsers({
bool? presence,
Filter? filter,
List<SortOption>? sort,
PaginationParams? pagination,
}) async {
final response = await _chatApi.user.queryUsers(
presence: presence ?? _connectionIdManager.hasConnectionId,
filter: filter,
sort: sort,
pagination: pagination,
);
state.updateUsers(response.users);
return response;
}