This is documentation for Stream Chat Angular SDK v4, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).

MessageInputConfigService

The MessageInputConfigService is used to keep a consistent configuration among the different MessageInput components if your UI has more than one input component.

Properties

areMentionsEnabled

areMentionsEnabled: undefined | boolean = true

If true, users can mention other users in messages. You also need to use the AutocompleteTextarea for this feature to work.

Defined in

lib/message-input/message-input-config.service.ts:17


inputMode

inputMode: "desktop" | "mobile" = 'desktop'

In desktop mode the Enter key will trigger message sending, in mobile mode the Enter key will insert a new line to the message input.

Defined in

lib/message-input/message-input-config.service.ts:30


isFileUploadEnabled

isFileUploadEnabled: undefined | boolean = true

If file upload is enabled, the user can open a file selector from the input. Please note that the user also needs to have the necessary channel capability.

Defined in

lib/message-input/message-input-config.service.ts:13


isMultipleFileUploadEnabled

isMultipleFileUploadEnabled: undefined | boolean = true

If false, users can only upload one attachment per message

Defined in

lib/message-input/message-input-config.service.ts:21


mentionScope

mentionScope: undefined | "channel" | "application" = 'channel'

The scope for user mentions, either members of the current channel of members of the application

Defined in

lib/message-input/message-input-config.service.ts:25

© Getstream.io, Inc. All Rights Reserved.