This commit is contained in:
Peter Maquiran
2022-08-04 16:52:35 +01:00
15 changed files with 176 additions and 78 deletions
+8 -8
View File
@@ -343,22 +343,22 @@ export class ChatPage implements OnInit {
this.idSelected = "";
}
async closeNewEventComponentAndOpenChat() {
async closeNewEventComponentAndOpenChat({roomId}) {
this.closeAllDesktopComponents();
this.showMessages = true
this.showEmptyComponent = false;
this.idSelected = this.roomId
console.log(roomId)
this.wsChatMethodsService._group.forEach((room)=>{
if(room.id == this.idSelected) {
if(room.id == roomId) {
this.showGroupMessages = true
this.openGroupMessagesPage(roomId)
}
})
this.wsChatMethodsService._dm.forEach((room)=>{
if(room.id == this.idSelected) {
this.showMessages = true
if(room.id == roomId) {
this.openMessagesPage(roomId)
}
})