This commit is contained in:
Peter Maquiran
2022-08-04 16:39:38 +01:00
parent 585a8c79fa
commit 6867a932b2
2 changed files with 29 additions and 4 deletions
+27 -2
View File
@@ -229,6 +229,9 @@ export class ChatPage implements OnInit {
}
}
openMessagesPage(rid) {
this.roomId = rid;
if (window.innerWidth < 701) {
this.openMessagesModal(rid);
}
@@ -236,7 +239,6 @@ export class ChatPage implements OnInit {
this.idSelected = rid;
this.closeAllDesktopComponents();
this.showEmptyComponent = false;
this.roomId = rid;
this.showMessages = true;
}
}
@@ -275,6 +277,8 @@ export class ChatPage implements OnInit {
}
openGroupMessagesPage(rid) {
this.roomId = rid;
if (window.innerWidth < 701) {
this.openGroupMessagesModal(rid);
}
@@ -282,7 +286,7 @@ export class ChatPage implements OnInit {
this.idSelected = rid;
this.closeAllDesktopComponents();
this.showEmptyComponent = false;
this.roomId = rid;
this.showGroupMessages = true;
}
@@ -339,6 +343,27 @@ export class ChatPage implements OnInit {
this.idSelected = "";
}
async closeNewEventComponentAndOpenChat() {
this.closeAllDesktopComponents();
this.showMessages = true
this.showEmptyComponent = false;
this.idSelected = this.roomId
this.wsChatMethodsService._group.forEach((room)=>{
if(room.id == this.idSelected) {
this.showGroupMessages = true
}
})
this.wsChatMethodsService._dm.forEach((room)=>{
if(room.id == this.idSelected) {
this.showMessages = true
}
})
}
onSegmentChange() {
this.wsChatMethodsService.getAllRooms();
}