mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
save
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user