This commit is contained in:
tiago.kayaya
2021-04-20 14:30:06 +01:00
parent e938fab0b6
commit f4f9d7fa56
3 changed files with 7 additions and 6 deletions
@@ -68,14 +68,12 @@ export class GroupContactsPage implements OnInit {
this.chatService.removeGroupMember(body).subscribe(res=>{
console.log(res);
this.getMembers();
this.loadUsers();
});
}
else if(this.room.t == "c"){
this.chatService.removeChannelMember(body).subscribe(res=>{
console.log(res);
this.getMembers();
this.loadUsers();
});
}
}
@@ -84,11 +82,13 @@ export class GroupContactsPage implements OnInit {
if(this.room.t == "p"){
this.chatService.getGroupMembers(this.room._id).subscribe(res=>{
this.members = res['members'];
this.loadUsers();
});
}
else if(this.room.t == "c"){
this.chatService.getChannelMembers(this.room._id).subscribe(res=>{
this.members = res['members'];
this.loadUsers();
});
}
}
@@ -134,9 +134,10 @@ export class GroupContactsPage implements OnInit {
return null;
}
doRefresh(event){
doRefresh(ev){
this.loadUsers();
this.getMembers();
ev.target.complete();
}
async close(){
@@ -221,8 +221,8 @@ export class GroupContactsPage implements OnInit {
return null;
}
doRefresh(event){
doRefresh(ev){
ev.target.complete();
}
async close(){
+1 -1
View File
@@ -265,7 +265,7 @@
background: rgba(51, 51, 51, 0.3);
}
.modal, .newchat, .new-group, .contacts, .group-messages, .custom-modal{
padding-top: 75px;
padding-top: 65px;
--border-radius: 25px 25px 0 0;
--border-width:0px;
}