agora-react-native-rtm icon indicating copy to clipboard operation
agora-react-native-rtm copied to clipboard

ChannelMessageReceived callback doesn't have the channel id

Open jafar-jabr opened this issue 3 years ago • 1 comments

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!

jafar-jabr avatar Aug 05 '22 15:08 jafar-jabr

You can use this event. ChannelMessageReceived: ( message: RtmMessage, fromMember: RtmChannelMember ) => void;

LichKing-2234 avatar Aug 30 '22 04:08 LichKing-2234