This commit is contained in:
Peter Maquiran
2022-09-30 13:24:19 +01:00
parent 08b9d5e5df
commit 6df9e1f30a
3 changed files with 37 additions and 34 deletions
@@ -430,25 +430,25 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
}
getGroupContacts(room: any) {
this.showLoader = true;
//If group is private call getGroupMembers
if (room.t === 'p') {
this.chatService.getGroupMembers(this.roomId).subscribe(res => {
//
this.members = res['members'];
this.showLoader = false;
});
}
//Otherwise call getChannelMembers for públic groups
else {
this.chatService.getChannelMembers(this.roomId).subscribe(res => {
// this.showLoader = true;
// //If group is private call getGroupMembers
// if (room.t === 'p') {
// this.chatService.getGroupMembers(this.roomId).subscribe(res => {
// //
// this.members = res['members'];
// this.showLoader = false;
// });
// }
// //Otherwise call getChannelMembers for públic groups
// else {
// this.chatService.getChannelMembers(this.roomId).subscribe(res => {
this.members = res['members'];
this.showLoader = false;
});
}
// this.members = res['members'];
// this.showLoader = false;
// });
// }
this.members = this.wsChatMethodsService.getGroupRoom(this.roomId).members
}
sendMessage() {