Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Rushu-geek opened this issue Apr 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@Rushu-geek
Copy link

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
@Rushu-geek Rushu-geek added the bug Something isn't working label Apr 15, 2022
@HenMoshe
Copy link

HenMoshe commented Jul 12, 2022

Hey Rushu! First nice app idea! Its not a bug- you cant modify another user feed with default permissions.
Check permissions docs
for an explanation on how to change permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants