This commit is contained in:
tiago.kayaya
2021-03-17 09:06:42 +01:00
parent b667fad2a3
commit 41d9c2b5b6
6 changed files with 28 additions and 22 deletions
+11 -4
View File
@@ -57,6 +57,7 @@ export class ChatPage implements OnInit {
componentRef: any;
roomId:any;
groupRoomId:any;
showEmptyComponent=true;
showMessages=false;
showContacts=false;
@@ -107,9 +108,13 @@ export class ChatPage implements OnInit {
this.showNewGroup=false;
this.showGroupMessages=false;
this.showEmptyComponent=false;
this.showGroupContacts=false;
console.log('All components closed!');
}
openGroupContactsPage(){
openGroupContactsPage(data){
console.log(data);
this.groupRoomId = data;
console.log(this.groupRoomId);
this.closeAllDesktopComponents();
if(window.innerWidth <= 1024){
@@ -150,14 +155,16 @@ export class ChatPage implements OnInit {
this.showNewGroup=true;
}
}
openGroupMessagesPage(rid) {
openGroupMessagesPage(data) {
console.log('HERE');
if( window.innerWidth <= 1024){
this.openGroupMessagesModal(rid);
this.openGroupMessagesModal(data);
}
else{
this.closeAllDesktopComponents();
this.showEmptyComponent = false;
this.roomId = rid;
this.roomId = data;
this.showGroupMessages=true;
}
}