diff --git a/src/app/shared/chat/messages/messages.page.ts b/src/app/shared/chat/messages/messages.page.ts index be848d425..6ecc64c53 100644 --- a/src/app/shared/chat/messages/messages.page.ts +++ b/src/app/shared/chat/messages/messages.page.ts @@ -536,18 +536,21 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy this.wsChatMethodsService.getDmRoom(roomId).send({ file: { - "type": "application/img", + "type": file.type, "guid": '', - "image_url": imageData + "image_url": imageData, }, attachments: [{ "title": file.name , - "text": "description", + "name": file.name , + // "text": "description", + "image_url": imageData, "title_link_download": false, }], temporaryData: formData }) + }