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: docusaurus/docs/Angular/components/MessageListComponent.mdx
+1-24Lines changed: 1 addition & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,30 +19,7 @@ If you want to customize how messages are displayed in the list, head over to th
19
19
20
20
### Custom message list
21
21
22
-
The message list contains a lot of low-level logic related to scrolling, we don't advise to create your own message list component, however it's possible: see [our customization guide](../concepts/customization.mdx) on how to provide your own message list component.
23
-
24
-
:::note
25
-
If you want to create your own message list, you can use the [`ChannelService`](../services/ChannelService.mdx) to receive the necessary messages and interact with the Stream API.
26
-
27
-
Other building blocks, that you might find useful:
28
-
29
-
### Message group styles
30
-
31
-
Message group styles makes the message list more readable, by grouping messages from the same author on the same day together. The grouping assigns a CSS class to every message, if you want to take advantage of this functionality, you can use the [`getGroupStyles`](https://github.com/GetStream/stream-chat-angular/tree/master/projects/stream-chat-angular/src/lib/message-list/group-styles.ts) utility function.
* The autocomplete list item template for mentioning users (used in the [`AutocompleteTextareaComponent`](../components/AutocompleteTextareaComponent.mdx))
45
49
*/
@@ -201,6 +205,8 @@ export class CustomTemplatesService {
201
205
/**
202
206
* The template used for displaying the delivered state of the message inside the [message component](../components/MessageComponent.mdx)
203
207
*
208
+
* Displayed for the last message sent by the current user, if the message isn't yet read by anyone
209
+
*
204
210
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
205
211
*/
206
212
deliveredStatusTemplate$=newBehaviorSubject<
@@ -209,6 +215,8 @@ export class CustomTemplatesService {
209
215
/**
210
216
* The template used for displaying the sending state of the message inside the [message component](../components/MessageComponent.mdx)
211
217
*
218
+
* Displayed for the last message sent by the current user, if the message is currently being sent
219
+
*
212
220
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
213
221
*/
214
222
sendingStatusTemplate$=newBehaviorSubject<
@@ -217,11 +225,21 @@ export class CustomTemplatesService {
217
225
/**
218
226
* The template used for displaying the sent state of the message inside the [message component](../components/MessageComponent.mdx)
219
227
*
228
+
* Displayed for the last message sent by the current user, if the message is read at least by one user
229
+
*
220
230
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
221
231
*/
222
232
readStatusTemplate$=newBehaviorSubject<
223
233
TemplateRef<ReadStatusContext>|undefined
224
234
>(undefined);
235
+
/**
236
+
* Template to display custom metadata inside [message component](../components/MessageComponent.mdx)
237
+
*
238
+
* For code examples to the different customizations see our [customizations example application](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example), specifically the [AppComponent](https://github.com/GetStream/stream-chat-angular/tree/master/projects/customizations-example/src/app) (see [README](https://github.com/GetStream/stream-chat-angular/blob/master/README.md#customization-examples) for instructions on how to start the application).
* The template used to display additional information about a channel under the channel name inside the [channel header component](../components/ChannelHeaderComponent.mdx)
0 commit comments