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/avatar-placeholder/avatar-placeholder.component.ts
+18-8Lines changed: 18 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ import {
15
15
AvatarType,
16
16
DefaultStreamChatGenerics,
17
17
}from'../types';
18
+
import{ThemeService}from'../theme.service';
18
19
19
20
/**
20
21
* The `AvatarPlaceholder` component displays the [default avatar](./AvatarComponent.mdx) unless a [custom template](../services/CustomTemplatesService.mdx) is provided. This component is used by the SDK internally, you likely won't need to use it.
@@ -61,6 +62,10 @@ export class AvatarPlaceholderComponent
* If a channel avatar is displayed, and if the channel has exactly two members a green dot is displayed if the other member is online. Set this flag to `false` to turn off this behavior.
67
+
*/
68
+
@Input()showOnlineIndicator=true;
64
69
context: AvatarContext={
65
70
name: undefined,
66
71
imageUrl: undefined,
@@ -70,28 +75,32 @@ export class AvatarPlaceholderComponent
0 commit comments