New format of chat group name

This commit is contained in:
Eudes Inácio
2022-06-29 16:45:39 +01:00
parent 528d3be338
commit 4bd34ca3c4
4 changed files with 9 additions and 2 deletions
@@ -11,7 +11,7 @@
</div>
<div class="middle-container" *ngIf="!showMessageOptions">
<div class="middle add-ellipsis">
<ion-label class="title">{{wsChatMethodsService.getGroupRoom(roomId).name}}</ion-label>
<ion-label class="title">{{groupNameFormart}}</ion-label>
</div>
</div>
<div class="middle-container-options" *ngIf="showMessageOptions">
@@ -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()