From 4bd34ca3c439cc7024459fa01f25873d86f9f856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eudes=20In=C3=A1cio?= Date: Wed, 29 Jun 2022 16:45:39 +0100 Subject: [PATCH] New format of chat group name --- src/app/pages/chat/group-messages/group-messages.page.html | 2 +- src/app/pages/chat/group-messages/group-messages.page.ts | 2 ++ src/app/shared/chat/group-messages/group-messages.page.html | 2 +- src/app/shared/chat/group-messages/group-messages.page.ts | 5 +++++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/app/pages/chat/group-messages/group-messages.page.html b/src/app/pages/chat/group-messages/group-messages.page.html index f7ce3f7f9..aad78431d 100644 --- a/src/app/pages/chat/group-messages/group-messages.page.html +++ b/src/app/pages/chat/group-messages/group-messages.page.html @@ -11,7 +11,7 @@
- {{wsChatMethodsService.getGroupRoom(roomId).name}} + {{groupNameFormart}}
diff --git a/src/app/pages/chat/group-messages/group-messages.page.ts b/src/app/pages/chat/group-messages/group-messages.page.ts index dccd9e4f3..5098fc243 100644 --- a/src/app/pages/chat/group-messages/group-messages.page.ts +++ b/src/app/pages/chat/group-messages/group-messages.page.ts @@ -68,6 +68,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy { selectedMsgId: string; roomCountDownDate: any; downloadFile: any; + groupNameFormart = ""; @ViewChild('scrollMe') private myScrollContainer: ElementRef; @@ -116,6 +117,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy { this.wsChatMethodsService.getGroupRoom(this.roomId).loadHistory({}); this.wsChatMethodsService.getGroupRoom(this.roomId).scrollDown = this.scrollToBottomClicked; this.wsChatMethodsService.openRoom(this.roomId) + this.groupNameFormart = this.wsChatMethodsService.getGroupRoom(this.roomId).name.split('-').join(' ') setTimeout(() => { this.scrollToBottomClicked() diff --git a/src/app/shared/chat/group-messages/group-messages.page.html b/src/app/shared/chat/group-messages/group-messages.page.html index e4d9424b9..86584f9c3 100644 --- a/src/app/shared/chat/group-messages/group-messages.page.html +++ b/src/app/shared/chat/group-messages/group-messages.page.html @@ -3,7 +3,7 @@
- {{wsChatMethodsService.getGroupRoom(roomId).name}} + {{groupNameFormart }}