diff --git a/src/web-components/who-is-online/who-is-online.ts b/src/web-components/who-is-online/who-is-online.ts index d4cf0206..230fefbb 100644 --- a/src/web-components/who-is-online/who-is-online.ts +++ b/src/web-components/who-is-online/who-is-online.ts @@ -259,6 +259,16 @@ export class WhoIsOnline extends WebComponentsBaseElement { `; } + private everyoneFollowsMeMessage() { + if (!this.everyoneFollowsMe) return ''; + + const { color } = this.localParticipantData; + + return html`
+ Everyone is following you Stop +
`; + } + private privateMessage() { if (!this.isPrivate) return ''; @@ -291,7 +301,7 @@ export class WhoIsOnline extends WebComponentsBaseElement { const classList = { 'superviz-who-is-online__participant': true, 'disable-dropdown': disableDropdown, - followed: participantIsFollowed, + followed: participantIsFollowed || (isLocal && this.everyoneFollowsMe), private: isLocal && this.isPrivate, }; @@ -334,7 +344,8 @@ export class WhoIsOnline extends WebComponentsBaseElement { protected render() { return html`
- ${this.renderParticipants()} ${this.followingMessage()} ${this.privateMessage()} + ${this.renderParticipants()} ${this.followingMessage()} ${this.everyoneFollowsMeMessage()} + ${this.privateMessage()}
`; } }