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
@@ -1136,7 +1136,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
modal.present();
} else {
this.downloadFileFromBrowser("file", str)
this.downloadFileFromBrowser(msg.attachments[0].name, str)
this.downloadFileFromBrowser(msg.attachments[0].title, str)
}
} else {
@@ -1153,7 +1153,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
});
modal.present();
} else {
this.openFile(str, msg.attachments[0].name, msg.file.type);
this.openFile(str, msg.attachments[0].title, msg.file.type);
}
}
}
+3 -3
View File
@@ -1067,9 +1067,9 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
} else {
this.downloadFileFromBrowser("file", str)
this.downloadFileFromBrowser(msg.attachments[0].name, str)
this.downloadFileFromBrowser(msg.attachments[0].title, str)
this.downloadFileFromBrowser(msg.attachments[0].name, str)
this.downloadFileFromBrowser(msg.attachments[0].title, str)
}
@@ -1087,7 +1087,7 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
});
modal.present();
} else {
this.openFile(str, msg.attachments[0].name, msg.file.type);
this.openFile(str, msg.attachments[0].title, msg.file.type);
}
}
+1 -1
View File
@@ -290,7 +290,7 @@ export class MessageService {
clearTimeout(this.functionTimer);
this.redefinedMessage(ChatMessage)
console.log()
// console.log()
}
).catch((error) => {
clearTimeout(this.functionTimer);
@@ -1112,7 +1112,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
this.downloadFileFromBrowser("file", str)
}
} else {
this.openFile(str, msg.attachments[0].name, msg.file.type);
this.openFile(str, msg.attachments[0].title, msg.file.type);
}
}
@@ -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)
}
}
}