mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
fix chat
This commit is contained in:
@@ -816,7 +816,9 @@ export class ChatPage implements OnInit {
|
||||
},
|
||||
});
|
||||
await modal.present();
|
||||
modal.onDidDismiss();
|
||||
modal.onDidDismiss().then(() =>{
|
||||
this.ChatSystemService.currentRoom.roomLeave()
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -528,7 +528,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
||||
async openOptions() {
|
||||
const modal = await this.popoverController.create({
|
||||
component: ChatPopoverPage,
|
||||
cssClass: 'chat-popover',
|
||||
cssClass: 'popover-bottom',
|
||||
componentProps: {
|
||||
roomId: this.roomId,
|
||||
members: this.members,
|
||||
|
||||
@@ -519,7 +519,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
|
||||
enterAnimation,
|
||||
leaveAnimation,
|
||||
component: ChatPopoverPage,
|
||||
cssClass: 'model profile-modal search-submodal chat-aside',
|
||||
cssClass: 'model search-submodal chat-option-aside',
|
||||
componentProps: {
|
||||
roomId: this.roomId,
|
||||
members: this.members,
|
||||
|
||||
@@ -39,10 +39,8 @@ export class ChatPopoverPage implements OnInit {
|
||||
close(action:any){
|
||||
if( window.innerWidth < 701){
|
||||
this.popoverController.dismiss(action);
|
||||
this.modalController.dismiss(action)
|
||||
}
|
||||
else{
|
||||
this.popoverController.dismiss(action);
|
||||
this.modalController.dismiss(action)
|
||||
}
|
||||
}
|
||||
@@ -123,25 +121,16 @@ export class ChatPopoverPage implements OnInit {
|
||||
});
|
||||
}
|
||||
});
|
||||
this.popoverController.dismiss('delete');
|
||||
this.modalController.dismiss('delete')
|
||||
this.close('delete');
|
||||
}
|
||||
|
||||
async openChangeGroupName(){
|
||||
if( window.innerWidth < 701){
|
||||
this.popoverController.dismiss('edit');
|
||||
this.modalController.dismiss('edit')
|
||||
}
|
||||
else{
|
||||
this.popoverController.dismiss('edit');
|
||||
this.modalController.dismiss('edit')
|
||||
}
|
||||
this.close('edit');
|
||||
}
|
||||
|
||||
|
||||
async addUser() {
|
||||
this.popoverController.dismiss('addUser');
|
||||
this.modalController.dismiss('addUser')
|
||||
this.close('addUser');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user