agora-react-native-rtm
agora-react-native-rtm copied to clipboard
ChannelMessageReceived callback doesn't have the channel id
Hi there, using "agora-react-native-rtm": "1.5.0", when listening to 'ChannelMessageReceived' using "client.addListener" the callback has only the message payload, although if I use "client.on(ChannelMessageReceived....", the callback has also the channel id, but don't want to use the deprecated method "client.on(" any advice please!
You can use this event. ChannelMessageReceived: ( message: RtmMessage, fromMember: RtmChannelMember ) => void;