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
+1
View File
@@ -20,6 +20,7 @@
<preference name="SplashShowOnlyFirstTime" value="false" /> <preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" /> <preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="3000" /> <preference name="SplashScreenDelay" value="3000" />
<preference name="iosPersistentFileLocation" value="Library" />
<platform name="android"> <platform name="android">
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android"> <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
<application android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true" android:networkSecurityConfig="@xml/network_security_config" /> <application android:usesCleartextTraffic="true" android:requestLegacyExternalStorage="true" android:networkSecurityConfig="@xml/network_security_config" />
@@ -1136,7 +1136,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
modal.present(); modal.present();
} else { } else {
this.downloadFileFromBrowser("file", str) this.downloadFileFromBrowser("file", str)
this.downloadFileFromBrowser(msg.attachments[0].name, str) this.downloadFileFromBrowser(msg.attachments[0].title, str)
} }
} else { } else {
@@ -1153,7 +1153,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy {
}); });
modal.present(); modal.present();
} else { } 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 { } else {
this.downloadFileFromBrowser("file", str) 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(); modal.present();
} else { } 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); clearTimeout(this.functionTimer);
this.redefinedMessage(ChatMessage) this.redefinedMessage(ChatMessage)
console.log() // console.log()
} }
).catch((error) => { ).catch((error) => {
clearTimeout(this.functionTimer); clearTimeout(this.functionTimer);
@@ -1112,7 +1112,7 @@ export class GroupMessagesPage implements OnInit, OnChanges, AfterViewInit, OnDe
this.downloadFileFromBrowser("file", str) this.downloadFileFromBrowser("file", str)
} }
} else { } 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) this.downloadFileMsg(msg)
} else { } else {
var str = msg.attachments[0].image_url;
var str = msg.attachments[0].image_url
str = str.substring(1, ((str.length) - 1)); str = str.substring(1, ((str.length) - 1));
if (this.platform.is('desktop') || this.platform.is('mobileweb')) { if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('hello')
console.log(msg) console.log(msg)
if (msg.file.type == "application/img") { if (msg.file.type == "application/img") {
const modal = await this.modalController.create({ const modal = await this.modalController.create({
@@ -1081,11 +1084,10 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy
} else { } 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)
} }
} }
} }
+6 -6
View File
@@ -1,12 +1,12 @@
export let versionData = { export let versionData = {
"shortSHA": "7c03c3f82", "shortSHA": "6f99c792d",
"SHA": "7c03c3f822d7af32096a855cd83877bf61532e65", "SHA": "6f99c792dcb13965ba29278b58b374766f4fa8a4",
"branch": "no_bug_movemente", "branch": "no_bug_movemente",
"lastCommitAuthor": "'Peter Maquiran'", "lastCommitAuthor": "'Peter Maquiran'",
"lastCommitTime": "'Mon Mar 20 16:10:11 2023 +0100'", "lastCommitTime": "'Wed Mar 22 15:31:01 2023 +0100'",
"lastCommitMessage": "fix", "lastCommitMessage": "fix sayings",
"lastCommitNumber": "4883", "lastCommitNumber": "4884",
"change": "", "change": "",
"changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: dockerfile\n\tmodified: src/app/modals/document-set-up-meeting/document-set-up-meeting.page.html\n\tmodified: src/app/modals/document-set-up-meeting/document-set-up-meeting.page.ts\n\tmodified: src/app/modals/view-event/view-event.page.ts\n\tmodified: src/app/models/envarioment.ts\n\tmodified: src/app/models/user.model.ts\n\tmodified: src/app/pages/agenda/agenda.page.html\n\tmodified: src/app/pages/agenda/agenda.page.ts\n\tmodified: src/app/pages/agenda/new-event/new-event.page.html\n\tmodified: src/app/pages/agenda/new-event/new-event.page.ts\n\tmodified: src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.html\n\tmodified: src/app/pages/gabinete-digital/despachos-pr/despachos-pr.page.ts\n\tmodified: src/app/pages/gabinete-digital/event-list/event-list.page.html\n\tmodified: src/app/pages/gabinete-digital/event-list/event-list.page.ts\n\tmodified: src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.html\n\tmodified: src/app/pages/gabinete-digital/expediente/book-meeting-modal/book-meeting-modal.page.ts\n\tmodified: src/app/pages/gabinete-digital/gabinete-digital.page.html\n\tmodified: src/app/services/events.service.ts\n\tmodified: src/app/shared/agenda/event-list/event-list.page.html\n\tmodified: src/app/shared/agenda/event-list/event-list.page.ts\n\tmodified: src/app/shared/agenda/new-event/new-event.page.html\n\tmodified: src/app/shared/agenda/new-event/new-event.page.ts\n\tmodified: src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page.html\n\tmodified: src/app/shared/gabinete-digital/despachos-pr/despachos-pr.page.ts\n\tmodified: src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.html\n\tmodified: src/app/shared/gabinete-digital/events-to-approve/events-to-approve.page.ts\n\tmodified: src/app/shared/popover/despachos-options/despachos-options.page.html\n\tmodified: src/app/shared/popover/despachos-options/despachos-options.page.ts\n\tmodified: src/app/shared/popover/despachos-pr-options/despachos-pr-options.page.html\n\tmodified: src/app/shared/popover/despachos-pr-options/despachos-pr-options.page.ts\n\tmodified: src/app/shared/popover/opts-expediente/opts-expediente.page.html\n\tmodified: src/app/shared/popover/opts-expediente/opts-expediente.page.ts\n\tmodified: src/environments/suport/doneIt.ts\n\tmodified: src/environments/suport/oapr.ts\n\tmodified: version/git-version.ts", "changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged <file>...\" to unstage)\n\tmodified: config.xml\n\tmodified: src/app/pages/chat/group-messages/group-messages.page.ts\n\tmodified: src/app/pages/chat/messages/messages.page.ts\n\tmodified: src/app/services/chat/message.service.ts\n\tmodified: src/app/shared/chat/group-messages/group-messages.page.ts\n\tmodified: src/app/shared/chat/messages/messages.page.ts",
"changeAuthor": "peter.maquiran" "changeAuthor": "peter.maquiran"
} }