customise message when group name is changed

This commit is contained in:
tiago.kayaya
2021-01-27 12:45:48 +01:00
parent d12a378836
commit 247daffbeb
7 changed files with 24 additions and 102 deletions
+2 -41
View File
@@ -56,13 +56,8 @@ export class ChatPage implements OnInit {
});
this.doRefresh();
/* this.loadJoinedRooms(); */
}
loadJoinedRooms(){
this.chatService.loadJoinedRooms().subscribe(res => {
console.log(res);
});
}
onSegmentChange(){
this.doRefresh();
}
@@ -84,7 +79,6 @@ export class ChatPage implements OnInit {
getDirectMessages(){
this.showLoader = true;
/* this.result = */
this.chatService.getAllDirectMessages().subscribe((res:any)=>{
console.log(res.ims);
@@ -101,8 +95,6 @@ export class ChatPage implements OnInit {
getChatMembers(){
this.chatService.getMembers(this.userDirectMessages[0]._id).subscribe(res=> {
this.dmUsers = res['members'].filter(data => data.username != this.loggedUser.me.username)
/* console.log(res);
console.log(this.dmUsers); */
});
}
getGroups(){
@@ -123,38 +115,7 @@ export class ChatPage implements OnInit {
});
});
}
/* getConnectedChannels(){
this.showLoader = true;
this.result = this.chatService.getAllUserChannels().subscribe((res:any)=>{
this.userChannels = res.channels;
console.log(res);
this.showLoader = false;
});
} */
/* getConnectedRooms(){
this.showLoader = true;
this.result = this.chatService.getAllRooms().subscribe((res:any)=>{
this.userRooms = res.update;
console.log(res.update);
this.showLoader = false;
});
} */
/* getConnectedUsers(){
this.showLoader = true;
this.result = this.chatService.getAllConnectedUsers().subscribe((res:any)=>{
this.userConnectedList = res.users;
this.showLoader = false;
});
} */
async startConversation(selectedUser) {
const modal = await this.modalController.create({
component: ConversationPage,