mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
save
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { AlertController, AnimationController } from '@ionic/angular';
|
||||
import { ChatService } from './chat.service';
|
||||
import { WsChatMethodsService } from './chat/ws-chat-methods.service';
|
||||
import { ToastService } from './toast.service';
|
||||
|
||||
@@ -12,7 +11,6 @@ export class AlertService {
|
||||
constructor(
|
||||
public alertController: AlertController,
|
||||
private animationController: AnimationController,
|
||||
private chatService: ChatService,
|
||||
private toastService: ToastService,
|
||||
public wsChatMethodsService: WsChatMethodsService,
|
||||
) { }
|
||||
@@ -59,7 +57,7 @@ export class AlertService {
|
||||
text: 'Apagar',
|
||||
handler: () => {
|
||||
//const loader = this.toastService.loading();
|
||||
|
||||
|
||||
this.wsChatMethodsService.deleteMessage(msgId).then(()=>{
|
||||
room.deleteMessage(msgId)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user