date chat ballon date change to commist

This commit is contained in:
Eudes Inácio
2023-09-12 23:15:29 +01:00
parent 86915ee911
commit 9cc97dfc0f
7 changed files with 55 additions and 9 deletions
+13
View File
@@ -5,6 +5,7 @@ import { capitalizeTxt } from 'src/plugin/text';
import { NfService } from 'src/app/services/chat/nf.service';
import { RochetChatConnectorService } from 'src/app/services/chat/rochet-chat-connector.service';
import { showDateDuration } from 'src/plugin/showDateDuration';
import { showTimeDuration } from 'src/plugin/showTimeDuration';
import { ChatMethodsService } from './chat-methods.service';
import { MessageModel, attachments } from '../../models/beast-orm';
import { AESEncrypt } from '../aesencrypt.service';
@@ -49,6 +50,7 @@ export class MessageService {
loadHistory = false
from: 'Offline'|'History'|'stream'| 'send'
duration = ''
time= '';
localReference = null
viewed: string[] = []
received: string[]= []
@@ -141,6 +143,7 @@ export class MessageService {
}
this.calDateDuration()
this.calTime()
}
@@ -449,6 +452,10 @@ export class MessageService {
this.duration = showDateDuration(date || this._updatedAt);
}
private calTime(time = null) {
this.time = showTimeDuration(time || this._updatedAt);
}
async delateStatusFalse() {
this.delate = true
@@ -747,6 +754,7 @@ export class MessageServiceDateLabel {
loadHistory = false
from: 'Offline'|'History'|'stream'| 'send'
duration = ''
time = ''
localReference = null
viewed: string[] = []
received: string[]= []
@@ -816,6 +824,7 @@ export class MessageServiceDateLabel {
}
this.calDateDuration()
this.calTime();
}
@@ -889,6 +898,10 @@ export class MessageServiceDateLabel {
this.duration = showDateDuration(date || this._updatedAt);
}
private calTime(time = null) {
this.time = showTimeDuration(time || this._updatedAt);
}
async delateStatusFalse() {