mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix date
This commit is contained in:
@@ -172,9 +172,13 @@ export class RoomService {
|
||||
this.members = members
|
||||
this.membersExcludeMe = membersExcludeMe
|
||||
|
||||
this.calDateDuration()
|
||||
this.restoreMessageFromDB()
|
||||
this.calDateDuration();
|
||||
|
||||
(async () => {
|
||||
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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user