mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
clear console.log with errors
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user