Skip to main content
Version: v4

MessageActionsService

The message actions service provides customization options for the message actions

Type parameters

NameType
Textends DefaultStreamChatGenerics = DefaultStreamChatGenerics

Properties

customActionClickHandler

Optional customActionClickHandler: (details: MessageActionsClickDetails\<T>) => void

By default the MessageComponent will display the MessageActionsBoxComponent. You can override that behavior by providing your own event handler.

Type declaration

▸ (details): void

Parameters
NameType
detailsMessageActionsClickDetails\<T>
Returns

void

Defined in

projects/stream-chat-angular/src/lib/message-actions.service.ts:122


customActions$

customActions$: BehaviorSubject\<CustomMessageActionItem\<DefaultStreamChatGenerics>[]>

You can pass your own custom actions that will be displayed inside the built-in message actions component

Defined in

projects/stream-chat-angular/src/lib/message-actions.service.ts:118


defaultActions

Readonly defaultActions: MessageActionItem\<T>[]

Default actions - these are the actions that are handled by the built-in component

Defined in

projects/stream-chat-angular/src/lib/message-actions.service.ts:26


messageToEdit$

messageToEdit$: BehaviorSubject\<undefined | StreamMessage\<T>>

The built-in components will handle changes to this observable.

Defined in

projects/stream-chat-angular/src/lib/message-actions.service.ts:114

Methods

getAuthorizedMessageActionsCount

getAuthorizedMessageActionsCount(message, enabledActions): number

This method returns how many authorized actions are available to the given message

Parameters

NameType
messageStreamMessage\<T>
enabledActionsstring[]

Returns

number

the count

Defined in

projects/stream-chat-angular/src/lib/message-actions.service.ts:136

Did you find this page helpful?