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

Unban not working #888

Closed
1 task done
developerpaaji opened this issue Feb 4, 2022 · 6 comments · Fixed by #901
Closed
1 task done

Unban not working #888

developerpaaji opened this issue Feb 4, 2022 · 6 comments · Fixed by #901
Labels
bug Something isn't working

Comments

@developerpaaji
Copy link

developerpaaji commented Feb 4, 2022

Which packages are you using?

stream_chat_flutter

On what platforms did you experience the issue?

iOS, Android

What version are you using?

3.3.2

What happened?

Ban command working but not unban command. With ban command when i send user name then its okay but with unban it seems it require user id

Steps to reproduce

1. Go to message screen 
2. Click on command icon
3. Click on unban
4. Mention user
5. You will get error - Invalid unban cmd, please specify a valid user

Here is the video -

Video Link

Supporting info to reproduce

No response

Relevant log output

No response

Flutter analyze output

No response

Flutter doctor output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@developerpaaji developerpaaji added the bug Something isn't working label Feb 4, 2022
@xsahil03x
Copy link
Contributor

Thanks for the video, we will soon work on fixing this 👍🏼

@developerpaaji
Copy link
Author

developerpaaji commented May 3, 2022

When i unban user in chat then everything it gives success response when that user try to send message i get error saying

`🕸️ ╔ DioErrorType.response

2022-05-03 11:39:19.821 🚨 🕸️ ║ {

2022-05-03 11:39:19.821 🚨 🕸️ ║ code: 17,

2022-05-03 11:39:19.821 🚨 🕸️ ║ "SendMessage failed with error: "Sorry, you do not have access to this feature. Your

account is currently

suspen

2022-05-03 11:39:19.821 🚨 🕸️ ║ ded from chat.""

2022-05-03 11:39:19.821 🚨 🕸️ ║ StatusCode: 403,

2022-05-03 11:39:19.821 🚨 🕸️ ║ duration: "0.00ms",

2022-05-03 11:39:19.821 🚨 🕸️ ║ more_info: "https://getstream.io/chat/docs/api_errors_response"

2022-05-03 11:39:19.821 🚨 🕸️ ║ } `

@imtoori
Copy link
Contributor

imtoori commented May 3, 2022

@developerpaaji
I think the error says it all
SendMessage failed with error: "Sorry, you do not have access to this feature. Your account is currently suspended from chat.
You should contact support about this

@developerpaaji
Copy link
Author

@imtoori but this happens only after I ban user

@developerpaaji
Copy link
Author

these are permission i have configured for group.

[
{
"action": "Deny",
"name": "No guests or anonymous access",
"resources": [
""
],
"roles": [
"anonymous",
"guest"
],
"owner": false,
"priority": 90
},
{
"action": "Allow",
"name": "Owner permissions",
"resources": [
"DeleteAttachment",
"DeleteChannel",
"DeleteMessage",
"DeleteReaction",
"RunMessageAction",
"UpdateMessage",
"RecreateChannel"
],
"roles": [
"channel_member",
"channel_moderator"
],
"owner": true,
"priority": 80
},
{
"action": "Allow",
"name": "Moderator only features",
"resources": [
"ReadMessageFlags",
"SkipChannelCooldown",
"UpdateChannelCooldown",
"UpdateChannelFrozen",
"PinMessage",
"BanChannelMember"
],
"roles": [
"channel_moderator"
],
"owner": false,
"priority": 70
},
{
"action": "Allow",
"name": "Channel member and moderator permissions",
"resources": [
"AddLinks",
"CreateMessage",
"CreateReaction",
"ReadChannel",
"SendCustomEvent",
"UploadAttachment"
],
"roles": [
"channel_member",
"channel_moderator"
],
"owner": false,
"priority": 50
},
{
"action": "Deny",
"name": "deny all policy",
"resources": [
"
"
],
"roles": [
"*"
],
"owner": false,
"priority": 1
}
]

@imtoori
Copy link
Contributor

imtoori commented May 3, 2022

@developerpaaji can you contact support? we can help you more easily since we can ask for your app id
thanks a lot

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

Successfully merging a pull request may close this issue.

3 participants