diff --git a/projects/ucap-webmessenger-ui-chat/src/lib/components/message-box.component.html b/projects/ucap-webmessenger-ui-chat/src/lib/components/message-box.component.html index c25bea9a..2b69b241 100644 --- a/projects/ucap-webmessenger-ui-chat/src/lib/components/message-box.component.html +++ b/projects/ucap-webmessenger-ui-chat/src/lib/components/message-box.component.html @@ -98,9 +98,7 @@
-
- {{ senderName }} -
+
{{ senderName }} {{ senderGrade }}
user.seq === seq + ); + if (!!userInfo && userInfo.length > 0) { + return userInfo[0].grade; + } + return ''; + } getUserProfile(seq: number): string { if (!this.userInfos) { return '';