This commit is contained in:
tiago.kayaya
2021-07-27 00:21:30 +01:00
parent 41cefc05a3
commit 130fc886ea
3 changed files with 24 additions and 15 deletions
+3
View File
@@ -22,6 +22,7 @@ import { EditGroupPage } from 'src/app/shared/chat/edit-group/edit-group.page';
import * as Rx from "rxjs/Rx";
import { Message } from 'src/app/models/message.model';
import { Observable, Subject } from "rxjs/Rx";
import { Router } from '@angular/router';
@Component({
selector: 'app-chat',
@@ -101,6 +102,7 @@ export class ChatPage implements OnInit {
private authService: AuthService,
private storage:Storage,
private resolver: ComponentFactoryResolver,
private router: Router,
){
this.loggedUserChat = authService.ValidatedUserChat['data'];
this.headers = new HttpHeaders();
@@ -181,6 +183,7 @@ hideRefreshButton(){
this.idSelected = rid;
if( window.innerWidth < 801){
this.openMessagesModal(rid);
//this.router.navigate(['/home/chat/messages',rid,]);
}
else{
this.closeAllDesktopComponents();