change reference

This commit is contained in:
Peter Maquiran
2023-03-28 16:11:59 +01:00
parent 6f99c792dc
commit e1ac8583f3
7 changed files with 20 additions and 17 deletions
@@ -1057,11 +1057,14 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
this.downloadFileMsg(msg)
} else {
var str = msg.attachments[0].image_url;
var str = msg.attachments[0].image_url
str = str.substring(1, ((str.length) - 1));
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('hello')
console.log(msg)
if (msg.file.type == "application/img") {
const modal = await this.modalController.create({
@@ -1081,11 +1084,10 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
} else {
this.openFile(str, msg.attachments[0].name, msg.file.type);
this.openFile(str, msg.attachments[0].title, msg.file.type);
// this.downloadFileFromBrowser("file", str)
}
}
}