Info:
This is documentation for Stream Chat Angular SDK v5, which is no longer actively maintained. For up-to-date documentation, see the latest version (v7).

MessageActionsService

The message actions service provides customization options for the message actions

Type parameters

Name Type
T extends 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
Name Type
details MessageActionsClickDetails<T>
Returns

void

Defined in

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


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:184


defaultActions

Readonly defaultActions: (MessageActionItem<T> | MessageReactionActionItem<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:28


messageMenuOpenedFor$

messageMenuOpenedFor$: BehaviorSubject<undefined | string>

Defined in

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


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:180

Methods

getAuthorizedMessageActionsCount

getAuthorizedMessageActionsCount(message, enabledActions): number

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

Parameters

Name Type
message StreamMessage<T>
enabledActions string[]

Returns

number

the count

Defined in

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

Add Chat to my app: getstream.io/SKILL.md

The fastest way to build with Stream. Start a new project or improve an existing one. Full CLI and documentation integration out of the box.


Ask your agent:

/stream Build me a Social App with Feeds and Moderation.
/stream Any livestream calls running?
/stream Chat Angular v5: <Your Question>