diff --git a/src/app/pages/chat/chat.page.html b/src/app/pages/chat/chat.page.html
index aae5650aa..288f94d9c 100644
--- a/src/app/pages/chat/chat.page.html
+++ b/src/app/pages/chat/chat.page.html
@@ -68,17 +68,20 @@
@@ -68,7 +68,7 @@
-
+
diff --git a/src/app/shared/chat/group-messages/group-messages.page.ts b/src/app/shared/chat/group-messages/group-messages.page.ts
index df6e4fc46..b64694d09 100644
--- a/src/app/shared/chat/group-messages/group-messages.page.ts
+++ b/src/app/shared/chat/group-messages/group-messages.page.ts
@@ -306,13 +306,8 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
this.message = "";
}
- deleteMessage(msgId: string) {
- let body = {
- "roomId": this.roomId,
- "msgId": msgId,
- "asUser": false,
- }
- this.alertService.confirmDeleteMessage(body);
+ deleteMessage(msgId: string, room:any) {
+ this.alertService.confirmDeleteMessage(msgId, room);
}
async openGroupMessagesOptions() {
diff --git a/src/app/shared/chat/messages/messages.page.html b/src/app/shared/chat/messages/messages.page.html
index 81790e731..b72777b27 100644
--- a/src/app/shared/chat/messages/messages.page.html
+++ b/src/app/shared/chat/messages/messages.page.html
@@ -44,7 +44,7 @@
-
+
@@ -63,7 +63,7 @@
-
+
diff --git a/src/app/shared/chat/messages/messages.page.ts b/src/app/shared/chat/messages/messages.page.ts
index 8759a86ac..b6e737c76 100644
--- a/src/app/shared/chat/messages/messages.page.ts
+++ b/src/app/shared/chat/messages/messages.page.ts
@@ -107,8 +107,8 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
this.wsChatMethodsService.getDmRoom(this.roomId).massages.forEach((element) => {
console.log('DATATATA 11', element)
}) */
-
-
+
+
//this.transformData(this.wsChatMethodsService.getDmRoom(this.roomId).massages)
//this.getMessageDB()
@@ -254,16 +254,8 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
this.message = "";
}
- deleteMessage(msgId: string) {
- let body = {
- "roomId": this.roomId,
- "msgId": msgId,
- "asUser": false,
- }
- this.alertService.confirmDeleteMessage(body);
- /* this.chatService.deleteMessage(body).subscribe(res=>{
- console.log(res);
- }); */
+ deleteMessage(msgId: string, room:any) {
+ this.alertService.confirmDeleteMessage(msgId, room);
}
async viewDocument(msg: any, url?: string) {
@@ -637,7 +629,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
console.log('FILE TYPE 33', msg.file.type)
} else if (event.type === HttpEventType.Response) {
this.downloadFile = 'data:image/jpeg;base64,' + btoa(new Uint8Array(event.body).reduce((data, byte) => data + String.fromCharCode(byte), ''));
-
+
msg.file = {
guid: msg.file.guid,
image_url: this.downloadFile,