Send audio bug solved

This commit is contained in:
Eudes Inácio
2022-03-21 13:33:57 +01:00
parent 45bc324deb
commit 78126883dd
6 changed files with 171 additions and 68 deletions
+3 -3
View File
@@ -389,11 +389,11 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
this.wsChatMethodsService.getDmRoom(roomId).send({
file: {
"type": "application/audio",
/* "guid": '', */
"guid": '',
},
attachments: [{
"title": fileName ,
"title_link": this.audioRecorded,
//"title_link": this.audioRecorded,
"title_link_download": true,
"type": "file"
}],
@@ -929,7 +929,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
async openPreview(msg) {
console.log(msg);
if (!msg.attachments[0].image_url || msg.attachments[0].image_url === null || msg.attachments[0].image_url === '') {
if (!msg.attachments[0].image_url || msg.attachments[0].image_url === null || msg.attachments[0].image_url === '' || !msg.attachments[0].title_link || msg.attachments[0].title_link === null || msg.attachments[0].title_link === '') {
this.downloadFile(msg)
//this.testDownlod(msg)