Skip to content

bug: StatusUpdateForm throwing error using modifyActivityData prop to add "to" target users. #352

@Rushu-geek

Description

@Rushu-geek

Describe the bug

I am using getstream in react-native application. To add feed activities I am using react-native component "StatusUpdateForm" where I want to target users so that the activity should also display in those targeted user's feed. I looked for way to implement it and after searching on so much time on internet I got some reference to do it. We can add modifyActivityData prop and add "to" properties to add target user ids. Here is my code

<StatusUpdateForm
	feedGroup='rowing'
	modifyActivityData={
		(data:any) => ({
			...data,  
			to:['rowing:123']
		})
	}
/>

After I add activity and hit submit button I am getting following error.
[Error: {"detail":"You do not have permission to do this, you got this error because there are no policies allowing this request on this application. Please consult the documentation https://getstream.io/docs/","status_code":403,"code":17,"exception":"NotAllowedException","duration":"0.17ms","more_info":"https://getstream.io/docs/api_error_responses"} with HTTP status code 403]

To Reproduce

Steps to reproduce the behavior:

  1. Add status update form in stream app.
  2. Use modifyActivityData prop and add "to" property with target user id.
  3. Add activity data and hit on submit button.

Expected behavior
The post should be successfully added and It should also reflect in the targetted user's feed.

Screenshots
image

Desktop (please complete the following information):

  • OS: iOS
  • Device: iPhone13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions