MessageActionsService
The message actions service provides customization options for the message actions
Properties
customActionClickHandler
Optional
customActionClickHandler: (details
: MessageActionsClickDetails
) => 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
Name | Type |
---|---|
details | MessageActionsClickDetails |
Returns
void
Defined in
projects/stream-chat-angular/src/lib/message-actions.service.ts:182
customActions$
customActions$: BehaviorSubject
<CustomMessageActionItem
[]>
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:178
defaultActions
Readonly
defaultActions: (MessageReactionActionItem
| MessageActionItem
)[]
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:25
messageMenuOpenedFor$
messageMenuOpenedFor$: BehaviorSubject
<undefined
| string
>
Defined in
projects/stream-chat-angular/src/lib/message-actions.service.ts:186
messageToEdit$
messageToEdit$: BehaviorSubject
<undefined
| StreamMessage
>
The built-in components will handle changes to this observable.
Defined in
projects/stream-chat-angular/src/lib/message-actions.service.ts:174
Methods
getAuthorizedMessageActionsCount
getAuthorizedMessageActionsCount(message
, enabledActions
): number
This method returns how many authorized actions are available to the given message
Parameters
Name | Type |
---|---|
message | StreamMessage |
enabledActions | string [] |
Returns
number
the count
Defined in
projects/stream-chat-angular/src/lib/message-actions.service.ts:225