GetStream / stream-net

NET Client - Build Activity Feeds & Streams with GetStream.io

Home Page:https://getstream.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to filter with GetEnrichedFlatActivitiesAsync

ekaganlv opened this issue · comments

I am retrieving a list of activities and I have the need to filter by ActorId or by a custom field. Neither one works. Here's my code, it's super simple but doesn't seem to produce the desired result and I am always getting the same list back.

var options = GetOptions.Default.WithOffset(pagesLoaded * PAGE_SIZE).WithLimit(PAGE_SIZE);
if (selectedActorId.HasValue)
{
options = options.WithUserId(selectedActorId.ToString());
}
if(SelectedProjectId.HasValue)
{
options = options.WithCustom("project_id", SelectedProjectId.Value.ToString());
}
options = options.WithReaction(ReactionOption.With().Counts().Own());

var activities = await feed.GetEnrichedFlatActivitiesAsync(options);

Please help!