This is documentation for
Stream Chat Angular SDK v4, which is nolonger actively maintained. For up-to-date documentation, see the latest version (v5).
MessageService
The message service contains configuration options related to displaying the message content
Properties
customLinkRenderer
• Optional
customLinkRenderer: (url
: string
) => string
Type declaration
▸ (url
): string
You can provide a custom method to display links
Parameters
Name | Type | Description |
---|---|---|
url | string | the url the link should refer to |
Returns
string
the HTML markup as a string for the link
Defined in
displayAs
• displayAs: "html"
| "text"
= 'text'
Decides if the message content should be formatted as text or HTML
If you display messages as text the following parts are still be displayed as HTML:
- user mentions -> you can customize this with your own template using the
customTemplatesService.mentionTemplate$
- links -> you can customize this by providing you own
customLinkRenderer
method
Defined in
On this page: