This commit is contained in:
tiago.kayaya
2021-07-26 09:44:11 +01:00
parent 6a0e65393b
commit 03d52e0918
8 changed files with 82 additions and 78 deletions
+4 -7
View File
@@ -103,7 +103,6 @@ export class ChatPage implements OnInit {
){
this.loggedUserChat = authService.ValidatedUserChat['data'];
this.headers = new HttpHeaders();
this.loadMessage();
}
ngOnInit() {
@@ -140,16 +139,16 @@ hideRefreshButton(){
}
loadMessage(){
/* loadMessage(){
this.chatService.messages.subscribe(msg => {
console.log("Response from websocket: " + msg);
});
}
sendMsg() {
} */
/* sendMsg() {
console.log("new message from client to websocket: ", this.message);
this.chatService.messages.next(this.message);
this.message.msg = "";
}
} */
/* Fim websockets functions */
@@ -168,9 +167,7 @@ sendMsg() {
this.showEmptyComponent=true;
}
openGroupContactsPage(data){
console.log(data);
this.groupRoomId = data;
console.log(this.groupRoomId);
this.closeAllDesktopComponents();
if(window.innerWidth <= 1024){