updateUserReactionForChannelItem

abstract fun updateUserReactionForChannelItem(channel: Channel, item: IChannelItem, reactionType: ReactionType?, listener: RainbowListener<IChannelItem, Unit>?)

Updates the user reaction of a channel item

When this method is called with null as ReactionType, the reaction is removed.

Parameters

channel

Channel object that contains the IChannelItem

item

IChannelItem object to which the user adds a reaction

reactionType

ReactionType enumeration that represents the user's reaction

listener

RainbowListener callback (onSuccess, onError)