So I have a room chat named Public and group chat named MyGroup. In my scenario, first I joined Public chat by default. And then later the user can join a group chat by clicking a button. But when I send a message in a Public channel or MyGroup channel both received the message. Is this expected behaviour?
PS: I’ve unsubscribed the AddMessage from Public channel when the user joined the MyGroup channel
No this is not expected; You are either sending the message to both channels; or on the receiving end not distinguishing arrived messages correctly. There is a bug on your client somewhere.
Also make sure you are using the latest Nakama Unity SDK + Nakama server.
1 Like
I’ve unsubscribed the event like in the Pirate Panic example but no luck. I thought it will stop receiving the message but it wasn’t. So I added some filter by make use of empty string from IApiChannelMessage to prevent it from spawning in the wrong chat box.