MessageService
The message service contains configuration options related to displaying the message content
Properties
customLinkRenderer
• Optional
customLinkRenderer: (url
: string
) => string
You can provide a custom method to display links
Type declaration
▸ (url
): string
Parameters
Name | Type | Description |
---|---|---|
url | string | the url the link should refer to |
Returns
string
Defined in
projects/stream-chat-angular/src/lib/message.service.ts:24
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