This commit is contained in:
tiago.kayaya
2021-03-15 15:19:07 +01:00
parent 22c8951c0f
commit 6fba6c0d64
13 changed files with 148 additions and 33 deletions
+18 -1
View File
@@ -57,7 +57,9 @@ export class ChatPage implements OnInit {
componentRef: any;
roomId:any;
showEmptyComponent=true;
showMessages=false;
showContacts=false;
showGroupMessages=false;
@Output() getRoomInfo;
@@ -99,7 +101,9 @@ export class ChatPage implements OnInit {
}
closeAllDesktopComponents() {
this.showMessages=false;
this.showContacts=false;
this.showGroupMessages=false;
this.showEmptyComponent=false;
}
openMessagesPage(rid) {
if( window.innerWidth <= 1024){
@@ -107,22 +111,35 @@ export class ChatPage implements OnInit {
}
else{
this.closeAllDesktopComponents();
this.showEmptyComponent = false;
this.roomId = rid;
this.showMessages=true;
}
}
openContactsPage() {
console.log('OK');
this.closeAllDesktopComponents();
if( window.innerWidth <= 1024){
//this.selectContact();
}
else{
console.log('here');
this.showContacts=true;
}
}
openGroupMessagesPage(rid) {
if( window.innerWidth <= 1024){
this.openGroupMessagesModal(rid);
}
else{
this.closeAllDesktopComponents();
this.showEmptyComponent = false;
this.roomId = rid;
this.showGroupMessages=true;
}
}
onSegmentChange(){
this.load();
}