This commit is contained in:
Peter Maquiran
2022-05-27 13:36:37 +01:00
parent 304975d823
commit ce7cee0876
25 changed files with 131 additions and 234 deletions
+4 -7
View File
@@ -218,12 +218,6 @@ export class AuthService {
let guid: any = await this.AttachmentsService.uploadFile(formData).toPromise()
message.file.guid = guid.path
// await this.storage.set(guid.path, message.file.image_url).then(() => {
//
// // message.getFileFromDb()
// });
message.downloadFileMsg()
return true
@@ -235,14 +229,17 @@ export class AuthService {
} else {
try {
const res = message.temporaryData
let url = await this.processesService.GetDocumentUrl(res.data.selected.Id, res.data.selected.ApplicationType).toPromise();
let url_no_options: string = url.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
message.attachments[0].title_link = url_no_options
message.attachments[0].message_link = url_no_options
return true
} catch(e) {
return false
}
}