Skip to main content

MessageReactionsService

The MessageReactionsService provides customization options to message reactions.

Properties

customReactionClickHandler

Optional customReactionClickHandler: (details: MessageReactionClickDetails) => void

Type declaration

▸ (details): void

By default the MessageReactionsComponent will display the reacting users when a reaction is clicked. You can override this with your own UI by providing a custom event handler.

The event handler can retrieve all reactions of a message inside the active channel using the channelService.getMessageReactions method

Parameters
NameType
detailsMessageReactionClickDetails
Returns

void

Defined in

lib/message-reactions.service.ts:31


reactions$

reactions$: BehaviorSubject<{}>

The enabled reactions and the associated emoji

You can provide any string as a reaction. The emoji can be provided as a string, if you want to use custom images for reactions you have to provide a custom reactions UI

Defined in

lib/message-reactions.service.ts:18

Accessors

reactions

get reactions(): Object

Get the currently enabled reactions

Returns

Object

Defined in

lib/message-reactions.service.ts:45

set reactions(reactions): void

Sets the enabled reactions

Parameters

NameType
reactionsObject

Returns

void

Defined in

lib/message-reactions.service.ts:38

Did you find this page helpful?