add paticipant on chat

This commit is contained in:
Peter Maquiran
2024-05-17 15:27:52 +01:00
parent ceaa283aef
commit 971a1f50d1
7 changed files with 24 additions and 6 deletions
@@ -109,6 +109,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
this.loggedUserChat = SessionStore.user.ChatData['data'];
this.isGroupCreated = true;
}
ngOnChanges(changes: SimpleChanges): void {
@@ -127,6 +128,13 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
this.deleteRecording();
if (SessionStore.user.ChatData.data.userId == this.ChatSystemService.getGroupRoom(this.roomId).u._id) {
this.isAdmin = true
} else {
this.isAdmin = false
}
}
ngOnInit() {
@@ -524,6 +532,9 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
async openOptions(ev: any) {
console.trace(this.room)
const popover = await this.popoverController.create({
component: ChatPopoverPage,
cssClass: 'chat-popover modal-desktop',