diff --git a/src/app/pages/publications/new-action/new-action.page.html b/src/app/pages/publications/new-action/new-action.page.html
index ceffc5934..4496486e3 100644
--- a/src/app/pages/publications/new-action/new-action.page.html
+++ b/src/app/pages/publications/new-action/new-action.page.html
@@ -64,6 +64,7 @@
placeholder="Data de fim*"
[formControl]="dateControlEnd"
[disabled]="disabled"
+ [min]="dateControlStart.value"
>
{
+ await this.restoreMessageFromDB()
+ await this.loadHistory({})
+ })()
+
if(this.customFields?.countDownDate) {
this.countDownDate(this.customFields.countDownDate);
}
@@ -746,6 +750,8 @@ export class RoomService {
}
}
+ this.hasLoadHistory = true
+
const chatHistory: chatHistory = await this.RochetChatConnectorService.loadHistory(this.id, limit)
if(chatHistory?.result?.messages) {
@@ -756,6 +762,7 @@ export class RoomService {
for(let message of chatHistory.result.messages.reverse()) {
if (!messagesId.includes(message._id)) {
message.origin = 'history'
+ message.from = 'History'
const messagesToSave = await this.prepareMessageCreateIfNotExist({message: message});
if(messagesToSave != null) {
@@ -776,7 +783,6 @@ export class RoomService {
this.scrollDown()
}, 50)
- this.hasLoadHistory = true
}
}
diff --git a/version/git-version.ts b/version/git-version.ts
index d64c17b89..9f3bd4181 100644
--- a/version/git-version.ts
+++ b/version/git-version.ts
@@ -1,12 +1,12 @@
export let versionData = {
- "shortSHA": "3fd2803a3",
- "SHA": "3fd2803a3b3d92fdbcf66863b580d74e6e284b69",
+ "shortSHA": "2d0f23749",
+ "SHA": "2d0f23749c63c3599eb3bed52d82f44746588edb",
"branch": "no_bug_movemente",
"lastCommitAuthor": "'Peter Maquiran'",
- "lastCommitTime": "'Mon Feb 6 17:54:06 2023 +0100'",
- "lastCommitMessage": "time",
- "lastCommitNumber": "4741",
+ "lastCommitTime": "'Mon Feb 6 17:58:02 2023 +0100'",
+ "lastCommitMessage": "fix merge",
+ "lastCommitNumber": "4744",
"change": "",
- "changeStatus": "On branch no_bug_movemente\nAll conflicts fixed but you are still merging.\n (use \"git commit\" to conclude merge)\n\nChanges to be committed:\n\tmodified: src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.html\n\tmodified: src/app/pages/gabinete-digital/pedidos/pedido/pedido.page.ts\n\tmodified: src/app/shared/agenda/new-event/new-event.page.ts\n\tmodified: src/app/shared/popover/request-options/request-options.page.html\n\tmodified: src/app/shared/popover/request-options/request-options.page.ts",
+ "changeStatus": "On branch no_bug_movemente\nChanges to be committed:\n (use \"git restore --staged ...\" to unstage)\n\tmodified: src/app/pages/publications/new-action/new-action.page.html\n\tmodified: src/app/pages/publications/new-action/new-action.page.ts\n\tmodified: src/app/services/chat/room.service.ts",
"changeAuthor": "peter.maquiran"
}
\ No newline at end of file