This commit is contained in:
tiago.kayaya
2021-08-20 19:20:48 +01:00
parent d425e13b5b
commit 3d0c8a4e22
+4 -2
View File
@@ -208,6 +208,7 @@ hideRefreshButton(){
} }
openMessagesPage(rid) { openMessagesPage(rid) {
if( window.innerWidth < 701){ if( window.innerWidth < 701){
this.segment = '';
this.openMessagesModal(rid); this.openMessagesModal(rid);
//this.router.navigate(['/home/chat/messages',rid,]); //this.router.navigate(['/home/chat/messages',rid,]);
} }
@@ -257,6 +258,7 @@ hideRefreshButton(){
console.log(rid); console.log(rid);
if( window.innerWidth < 701){ if( window.innerWidth < 701){
this.segment = '';
this.openGroupMessagesModal(rid); this.openGroupMessagesModal(rid);
} }
else{ else{
@@ -373,7 +375,7 @@ hideRefreshButton(){
} }
else { else {
//Check if modal is opened //Check if modal is opened
if(this.segment == "Contactos"){ if(this.segment == "Contactos" && this.showMessages != true){
await new Promise(resolve => setTimeout(resolve, 5000)); await new Promise(resolve => setTimeout(resolve, 5000));
await this.getDirectMessages(); await this.getDirectMessages();
console.log('Timer contactos list running') console.log('Timer contactos list running')
@@ -454,7 +456,7 @@ hideRefreshButton(){
} }
else { else {
//Check if modal is opened //Check if modal is opened
if(this.segment == "Grupos"){ if(this.segment == "Grupos" && this.showGroupMessages != true){
await new Promise(resolve => setTimeout(resolve, 5000)); await new Promise(resolve => setTimeout(resolve, 5000));
await this.getGroups(); await this.getGroups();
console.log('Timer groups list running') console.log('Timer groups list running')