Merge branch 'feature/chat' of https://bitbucket.org/equilibriumito/gabinete-digital into feature/chat

This commit is contained in:
Eudes Inácio
2021-07-26 12:38:24 +01:00
7 changed files with 29 additions and 27 deletions
@@ -90,10 +90,6 @@ export class MessagesPage implements OnInit, AfterViewChecked, OnChanges {
}
}
loadMoreMessages(ev:any){
}
sendMessage(){
let body = {
@@ -112,7 +108,7 @@ export class MessagesPage implements OnInit, AfterViewChecked, OnChanges {
loadMessages(){
//this.showLoader = true;
this.chatService.getRoomMessages(this.roomId).subscribe(res => {
/* console.log(res); */
console.log(res);
this.messages = res['messages'].reverse();
console.log(this.messages);
this.serverLongPull(res)
@@ -126,7 +122,7 @@ export class MessagesPage implements OnInit, AfterViewChecked, OnChanges {
getChatMembers(){
console.log(this.roomId);
this.showLoader = true;
//this.showLoader = true;
this.chatService.getMembers(this.roomId).subscribe(res=> {
this.dmUsers = res['members'].filter(data => data.username != this.loggedUser.me.username)
console.log(res);