reloadUsers method
Implementation
@override
Future<List<String>> reloadUsers(String roomId, String ownerId) async {
fetchAll = false;
try {
CursorResult<String> result =
await ChatroomUIKitClient.instance.fetchParticipants(
roomId: roomId,
pageSize: pageSize,
);
if (result.cursor?.isEmpty == true) {
fetchAll = true;
}
cursor = result.cursor ?? '';
result.data.remove(ownerId);
result.data.insert(0, ownerId);
return result.data;
} catch (e) {
return [];
}
}