mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
fix delete message in mobile
This commit is contained in:
@@ -158,19 +158,8 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deleteMessage(msgId: string) {
|
deleteMessage(msgId: string) {
|
||||||
let body = {
|
const room = this.wsChatMethodsService.getGroupRoom(this.roomId)
|
||||||
"roomId": this.roomId,
|
this.alertService.confirmDeleteMessage(msgId, room);
|
||||||
"msgId": msgId,
|
|
||||||
"asUser": false,
|
|
||||||
}
|
|
||||||
if (msgId) {
|
|
||||||
//this.alertService.confirmDeleteMessage(body);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.toastService.badRequest('Não foi possível apagar');
|
|
||||||
}
|
|
||||||
this.showMessageOptions = false;
|
|
||||||
this.selectedMsgId = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngAfterViewInit() {
|
ngAfterViewInit() {
|
||||||
@@ -374,6 +363,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
|
this.deleteRecording(this.lastAudioRecorded);
|
||||||
}
|
}
|
||||||
|
|
||||||
doRefresh(ev: any) {
|
doRefresh(ev: any) {
|
||||||
|
|||||||
@@ -313,19 +313,8 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deleteMessage(msgId: string) {
|
deleteMessage(msgId: string) {
|
||||||
let body = {
|
const room = this.wsChatMethodsService.getDmRoom(this.roomId)
|
||||||
"roomId": this.roomId,
|
this.alertService.confirmDeleteMessage(msgId, room);
|
||||||
"msgId": msgId,
|
|
||||||
"asUser": false,
|
|
||||||
}
|
|
||||||
if (msgId) {
|
|
||||||
//this.alertService.confirmDeleteMessage(body);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
this.toastService.badRequest('Não foi possível apagar');
|
|
||||||
}
|
|
||||||
this.showMessageOptions = false;
|
|
||||||
this.selectedMsgId = "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -335,6 +324,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
|
|||||||
|
|
||||||
close() {
|
close() {
|
||||||
this.modalController.dismiss();
|
this.modalController.dismiss();
|
||||||
|
this.deleteRecording(this.lastAudioRecorded);
|
||||||
}
|
}
|
||||||
|
|
||||||
load() {
|
load() {
|
||||||
|
|||||||
Reference in New Issue
Block a user