mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-21 05:45:50 +00:00
improve
This commit is contained in:
@@ -43,7 +43,6 @@ export class AlertService {
|
||||
}
|
||||
|
||||
async confirmDeleteMessage(msgId:any, room:any) {
|
||||
console.log(room);
|
||||
|
||||
const alert = await this.alertController.create({
|
||||
cssClass: 'my-custom-class',
|
||||
@@ -60,7 +59,10 @@ export class AlertService {
|
||||
text: 'Apagar',
|
||||
handler: () => {
|
||||
//const loader = this.toastService.loading();
|
||||
this.wsChatMethodsService.deleteMessage(msgId);
|
||||
|
||||
this.wsChatMethodsService.deleteMessage(msgId).then(()=>{
|
||||
room.deleteMessage(msgId)
|
||||
})
|
||||
//this.wsChatMethodsService.subscribeToRoomUpdate(room._id, room);
|
||||
//loader.remove();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user