Unable to shadowBan
or Ban
user from a specific channel
#1121
Labels
Backend Team
The backend team is in charge of this issue
I'm using getStream.io to integrate chat in my flutter app. The app have one-on-one chatting feature, so I want users to be able to block other users.
To do that I have written a node.js cloud function backend in typescript. The users can pass the user Id of the person they want to block from their personal one-on-one chatting channel.
That users will be "shadow banned" from the channel, so the user that requested blocking will not receive messages and the blocked user won't know that they are blocked.
The backend code is as follows:
However, doing so, the user is completely being shadow banned from all the channels and not from the only single intended channel.
The stream chat node js package I'm using is
"stream-chat": "^8.6.0"
The text was updated successfully, but these errors were encountered: