mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
date chat ballon date change to commist
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user