clear console.log with errors

This commit is contained in:
Peter Maquiran
2024-10-23 09:58:49 +01:00
parent bc6833b6c4
commit 4396b17909
6 changed files with 31 additions and 18 deletions
+1 -1
View File
@@ -89,7 +89,7 @@
<span *ngIf="room.lastMessageAudio" class="item-files-title font-13-em"> audio </span>
<fa-icon *ngIf="room?.messages?.[0]?.attachments[0]?.mimeType == 'application/meeting'" icon="calendar-alt" class="file-icon" [class.set-active-item-font-to-white]="room.$id == selectedRoomId"></fa-icon>
<fa-icon *ngIf="room.lastMessageImage" icon="image"></fa-icon>
<span class="pl-2 font-13-em add-ellipsis">{{ room.messages[0].attachments[0].description }}</span>
<span class="pl-2 font-13-em add-ellipsis" *ngIf="!room.lastMessageAudio">{{ room.messages[0].attachments[0].description }}</span>
</div>
<!-- <div class="item-files" *ngIf="room.attachments">
+7 -5
View File
@@ -208,7 +208,10 @@ export class ChatPage implements OnInit {
const urlParams = new URLSearchParams(window.location.search);
const roomId = urlParams.get('roomId');
if (roomId) {
const roomExist = this.rooms.find(e => e.id == roomId)
if (roomId && roomExist) {
if (this.firstEnter) {
this.firstEnter = false
@@ -221,17 +224,16 @@ export class ChatPage implements OnInit {
if (!delay) {
console.log("delay")
setTimeout(() => {
this.openChat(roomId)
this.openChat(roomExist.$id)
}, 2000)
} else {
console.log("no dalay")
this.openChat(roomId)
this.openChat(roomExist.$id)
}
} else {
this.openChat(roomId)
this.openChat(roomExist.$id)
}
}
}
@@ -60,9 +60,11 @@ export class GroupContactsPage implements OnInit {
if(addMembers.isOk()) {
// this.addContacts(this.roomId);
this.openGroupMessage.emit(this.roomId);
this.chatServiceService.getRoomById(this.roomId);
setTimeout(() => {
this.openGroupMessage.emit(this.roomId);
}, 100)
// await this.chatServiceService.getRoomById(this.roomId);
} else if(addMembers.error instanceof HttpRequest) {
this.httpErrorHandle.httpStatusHandle(addMembers.error)
}