git pull made and peter chnages recived

This commit is contained in:
Eudes Inácio
2023-03-09 16:58:34 +01:00
74 changed files with 296 additions and 274 deletions
@@ -549,6 +549,9 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
}
else if (res.data == 'edit') {
this.editGroup(this.roomId);
} else if (res.data == 'addUser') {
this.addContacts();
}
});
}
@@ -823,25 +826,27 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
}
async addContacts() {
if(this.isAdmin) {
const modal = await this.modalController.create({
component: GroupContactsPage,
componentProps: {
isCreated: this.isGroupCreated,
room: this.room,
members: this.members,
name: this.room.name,
},
cssClass: 'contacts',
backdropDismiss: false
});
const modal = await this.modalController.create({
component: GroupContactsPage,
componentProps: {
isCreated: this.isGroupCreated,
room: this.room,
members: this.members,
name: this.room.name,
},
cssClass: 'contacts',
backdropDismiss: false
});
await modal.present();
modal.onDidDismiss().then(() => {
this.getRoomInfo();
});
}
await modal.present();
modal.onDidDismiss().then(() => {
this.getRoomInfo();
});
}
async editGroup(roomId) {