onSendReactionRequest

open suspend fun onSendReactionRequest(cid: String?, reaction: Reaction, enforceUnique: Boolean, skipPush: Boolean, currentUser: User)

A method called before making an API call to send the reaction.

Parameters

cid

The full channel id, i.e. "messaging:123".

reaction

The Reaction to send.

enforceUnique

Flag to determine whether the reaction should replace other ones added by the current user.

skipPush

If set to "true", skips sending push notification when reacting to a message.

currentUser

The currently logged in user.


abstract suspend fun onSendReactionRequest(cid: String?, reaction: Reaction, enforceUnique: Boolean, currentUser: User)

Deprecated

This method will be removed in the future. Use SendReactionListener#onSendReactionRequest(cid, reaction, enforceUnique, skipPush, currentUser) instead. For backwards compatibility, this method is still called internally by the new, non-deprecated method.

A method called before making an API call to send the reaction.

Parameters

cid

The full channel id, i.e. "messaging:123".

reaction

The Reaction to send.

enforceUnique

Flag to determine whether the reaction should replace other ones added by the current user.

currentUser

The currently logged in user.