+
+
+
+ {{msg.u.name}}
+ {{showDateDuration(msg._updatedAt)}}
+
+
+ {{msg.msg}}
+ {{last ? scrollToBottom() : ''}}
+
+
+
+
+
+ {{msg.u.name}}
+ {{showDateDuration(msg._updatedAt)}}
+
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+ {{file.title}}
+
+
+
+
+ {{file.description}}
+ •
+ {{msg.file.type.replace('application/','').toUpperCase()}}
+
+
+
+
+
+
+ {{last ? scrollToBottom() : ''}}
+
+
+
+
+
{{msg.u.name}} criou esta reunião
De {{showDateDuration(msg.file.start_date)}} a {{showDateDuration(msg.file.end_date)}}
diff --git a/src/app/pages/chat/messages/messages.page.ts b/src/app/pages/chat/messages/messages.page.ts
index 0e72b5634..237c7a89b 100644
--- a/src/app/pages/chat/messages/messages.page.ts
+++ b/src/app/pages/chat/messages/messages.page.ts
@@ -365,10 +365,6 @@ export class MessagesPage implements OnInit, AfterViewInit, OnDestroy {
if (file.type == "application/webtrix") {
this.openViewDocumentModal(file);
}
- else {
- let fullUrl = "https://www.tabularium.pt" + url;
- this.fileService.viewDocumentByUrl(fullUrl);
- }
}
docIndex(index: number) {
diff --git a/src/app/services/chat.service.ts b/src/app/services/chat.service.ts
index 16c07557c..c032e7261 100644
--- a/src/app/services/chat.service.ts
+++ b/src/app/services/chat.service.ts
@@ -190,7 +190,7 @@ export class ChatService {
let opts = {
headers: this.headers,
}
- return this.http.post(environment.apiChatUrl+'im.close', body, this.options);
+ return this.http.post(environment.apiChatUrl+'im.delete', body, this.options);
}
createRoom(body:any){
diff --git a/src/app/services/functions/file.service.ts b/src/app/services/functions/file.service.ts
index ee3d2d9de..a5cd7bd01 100644
--- a/src/app/services/functions/file.service.ts
+++ b/src/app/services/functions/file.service.ts
@@ -435,6 +435,7 @@ export class FileService {
{
"rid": roomId,
"msg": "",
+ "alias": "documento",
"attachments": [{
"title": res.data.selected.Assunto,
"description": res.data.selected.DocTypeDesc,
diff --git a/src/app/shared/chat/group-messages/group-messages.page.html b/src/app/shared/chat/group-messages/group-messages.page.html
index ff4c7537b..c09032572 100644
--- a/src/app/shared/chat/group-messages/group-messages.page.html
+++ b/src/app/shared/chat/group-messages/group-messages.page.html
@@ -91,6 +91,57 @@
{{last ? scrollToBottom() : ''}}
+
+
+
+
+
+
+
+
+
+
+ {{msg.u.name}}
+ {{showDateDuration(msg._updatedAt)}}
+
+
+
{{msg.msg}}
+
+
+
+

+
+
+
+
+
+
+
+
+
+
+
+
+ {{file.title}}
+
+
+
+
+ {{file.description}}
+ •
+ {{msg.file.type.replace('application/','').toUpperCase()}}
+
+
+
+
+
+
+ {{last ? scrollToBottom() : ''}}
+
+
+
+
+
Alterou o nome do grupo para "{{msg.msg.split('-').join(' ')}}"
{{last ? scrollToBottom() : ''}}
@@ -111,8 +162,8 @@
{{last ? scrollToBottom() : ''}}