diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.html b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.html
index 46d87577..e1a57ca4 100644
--- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.html
+++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.html
@@ -98,6 +98,9 @@
{{ getSingleRoomUserInfosGrade(_roomUserInfos) }}
+
+ / {{ getSingleRoomUserInfosDeptName(_roomUserInfos) }}
+
0 &&
diff --git a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts
index 369262fb..d5494d9c 100644
--- a/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts
+++ b/projects/ucap-webmessenger-app/src/app/layouts/messenger/components/messages.component.ts
@@ -602,6 +602,15 @@ export class MessagesComponent implements OnInit, OnDestroy, AfterViewInit {
return roomName;
}
+ getSingleRoomUserInfosDeptName(roomUserInfos: any[]) {
+ if (roomUserInfos.length > 0) {
+ return new UiTranslatePipe(
+ this.uiTranslateService,
+ this.changeDetectorRef
+ ).transform(roomUserInfos, 'deptName', ',');
+ }
+ return '';
+ }
getSingleRoomUserInfosGrade(roomUserInfos: any[]) {
if (roomUserInfos.length > 0) {
return new UiTranslatePipe(