You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/stream-chat-angular/src/lib/message.service.ts
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,20 @@ import { Injectable } from '@angular/core';
9
9
exportclassMessageService{
10
10
/**
11
11
* Decides if the message content should be formatted as text or HTML
12
+
*
13
+
* If you display messages as text the following parts are still be displayed as HTML:
14
+
* - user mentions -> you can customize this with your own template using the [`customTemplatesService.mentionTemplate$`](https://getstream.io/chat/docs/sdk/angular/services/CustomTemplatesService/#mentiontemplate)
15
+
* - links -> you can customize this by providing you own [`customLinkRenderer`](#customlinkrenderer) method
12
16
*/
13
17
displayAs: 'text'|'html'='text';
14
18
19
+
/**
20
+
* You can provide a custom method to display links
21
+
*
22
+
* @param url the url the link should refer to
23
+
* @returns the HTML markup as a string for the link
0 commit comments