From 0cfa06c33c47d28a867ae414f2f40e4f819d7f6e Mon Sep 17 00:00:00 2001 From: "tiago.kayaya" Date: Tue, 22 Mar 2022 14:41:28 +0100 Subject: [PATCH 1/2] save --- src/app/shared/chat/messages/messages.page.ts | 6 +++--- src/environments/environment.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/shared/chat/messages/messages.page.ts b/src/app/shared/chat/messages/messages.page.ts index 320a7ff46..d589cd810 100644 --- a/src/app/shared/chat/messages/messages.page.ts +++ b/src/app/shared/chat/messages/messages.page.ts @@ -746,7 +746,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy const roomId = this.roomId const file: any = await this.fileService.getFileFromDevice(types); - + console.log('Add file', file) /* const imageData = await this.fileToBase64Service.convert(file).then((filee) => { console.log('Add file', filee) @@ -759,7 +759,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy let pdfBase64; this.blobToBase64(blob).then(res => { - console.log('Base64 pdf', res); + //console.log('Base64 pdf', res); this.wsChatMethodsService.getDmRoom(roomId).send({ file: { "type": file.type, @@ -911,7 +911,7 @@ export class MessagesPage implements OnInit, OnChanges, AfterViewInit, OnDestroy // save the changes to the storage msg.save() - + } }); diff --git a/src/environments/environment.ts b/src/environments/environment.ts index cd809f519..8737cf097 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,8 +4,8 @@ export const environment = { production: false, - apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/', - //apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/', + //apiURL: 'https://gabinetedigital.dyndns.info/GabineteDigital.Services/V5/api/', + apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V5/api/', apiChatUrl: 'https://gabinetedigitalchat.dyndns.info/api/v1/', apiWsChatUrl: 'wss://gabinetedigitalchat.dyndns.info/websocket', //apiChatUrl: 'https://www.tabularium.pt/api/v1/', From b619877cdd556a2cab64c0fe4fa1a6fffa2c2d7d Mon Sep 17 00:00:00 2001 From: "tiago.kayaya" Date: Tue, 22 Mar 2022 15:50:27 +0100 Subject: [PATCH 2/2] save --- src/app/pages/chat/group-messages/group-messages.page.ts | 2 +- src/app/services/auth.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/chat/group-messages/group-messages.page.ts b/src/app/pages/chat/group-messages/group-messages.page.ts index fc233c102..c5f92d88f 100644 --- a/src/app/pages/chat/group-messages/group-messages.page.ts +++ b/src/app/pages/chat/group-messages/group-messages.page.ts @@ -455,7 +455,7 @@ export class GroupMessagesPage implements OnInit, AfterViewInit, OnDestroy { }, attachments: [{ "title": fileName , - "title_link": this.audioRecorded, + /* "title_link": this.audioRecorded, */ "title_link_download": true, "type": "file" }], diff --git a/src/app/services/auth.service.ts b/src/app/services/auth.service.ts index b28f8f4ec..510b05fa1 100644 --- a/src/app/services/auth.service.ts +++ b/src/app/services/auth.service.ts @@ -149,7 +149,7 @@ export class AuthService { this.WsChatService.connect(); this.WsChatService.login().then((message: any) => { - + SessionStore.user.RochetChatUserId = message.result.id SessionStore.save() this.WsChatService.setStatus('online')