remove unset variable in the html

This commit is contained in:
Peter Maquiran
2024-09-05 15:26:23 +01:00
parent 074b750b56
commit 3067d0e239
7 changed files with 8 additions and 10 deletions
@@ -166,7 +166,7 @@ export class ContactsPage implements OnInit {
console.log(result)
if(result.isOk()) {
await this.ChatServiceService.getRoomById(result.value.id);
this.openMessage.emit(result.value.id);
} else if(result.error instanceof HttpErrorResponse) {
@@ -3,13 +3,13 @@
<div class="main-header">
<div class="header-top">
<div class="middle" >
<ion-label class="title" *ngIf="(roomData$ | async) === null"> {{ room.roomName }}</ion-label>
<!-- <ion-label class="title" *ngIf="(roomData$ | async) === null"> {{ room.roomName }}</ion-label> -->
<ion-label class="title" *ngIf="roomData$ | async as roomData"> {{ roomData.roomName }}</ion-label>
<!-- <button (click)="ChatMessageDebuggingPage()">Dev</button> -->
<span *ngIf="roomStatus$ | async as roomStatus"><ion-icon *ngIf="roomStatus" class="online" name="ellipse"></ion-icon></span>
</div>
<div class="right">
<button title="Menu" class="btn-no-color" (click)="_openMessagesOptions()" *ngIf="room.roomType == RoomTypeEnum.Group">
<button title="Menu" class="btn-no-color" (click)="_openMessagesOptions()" *ngIf="roomType == RoomTypeEnum.Group">
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/theme/blue/icons-menu.svg"></ion-icon>
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " src="assets/images/theme/gov/icons-menu.svg">
</ion-icon>
@@ -448,8 +448,6 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
const message = new MessageViewModal(_message)
this.messages1[this.roomId].push(new MessageViewModal(message))
console.log('message=======', message)
if(message.hasAttachment) {
const result = await this.chatServiceService.downloadMessageAttachmentByMessageId({