diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.html b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.html
index 9f4cd16f..69d175de 100644
--- a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.html
+++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.html
@@ -14,6 +14,12 @@
(click)="onClickOpenProfile($event, userInfo)"
/>
+
+ phone_android
+
diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.scss b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.scss
index 3a888f93..fcf879f9 100644
--- a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.scss
+++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.scss
@@ -26,6 +26,23 @@ $thumbnail-msize: 40px;
}
}
+.badge-mobile-state {
+ position: absolute;
+ background-color: #ffffff;
+ width: 18px;
+ height: 18px;
+ border-radius: 50%;
+ bottom: 14px;
+ left: 60px;
+ text-align: center;
+ .mat-icon {
+ font-size: 14px;
+ width: 18px;
+ height: 18px;
+ line-height: 18px;
+ }
+}
+
%list-item {
position: relative;
display: flex;
diff --git a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts
index 28d5212d..d230a758 100644
--- a/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts
+++ b/projects/ucap-webmessenger-ui-profile/src/lib/components/user-list-item.component.ts
@@ -65,13 +65,16 @@ export class UserListItemComponent implements OnInit {
this.profileImageRoot || this.sessionVerinfo.profileRoot;
}
- getPresence(type: string): string {
+ getPresence(type: PresenceType): string {
let status: string;
let rtnClass = '';
switch (type) {
- case 'pc':
+ case PresenceType.PC:
status = !!this.presence ? this.presence.pcStatus : undefined;
break;
+ case PresenceType.MOBILE:
+ status = !!this.presence ? this.presence.mobileStatus : undefined;
+ break;
}
if (!!status) {