This commit is contained in:
Peter Maquiran
2023-09-19 10:21:23 +01:00
parent 527cc0f2a6
commit f51bd246fc
29 changed files with 754 additions and 261 deletions
+4 -2
View File
@@ -721,11 +721,11 @@ export class RoomService {
formatDateToDDMMYYYY(dateStamp) {
const date = new Date(dateStamp);
const day = date.getDate().toString().padStart(2, '0');
const month = (date.getMonth() + 1).toString().padStart(2, '0'); // Month is zero-based
const year = date.getFullYear();
return `${day}-${month}-${year}`;
}
@@ -780,6 +780,8 @@ export class RoomService {
let currentDateMessage = new Date().toLocaleDateString()
if(!this.labelDates.find( e => e == currentDateMessage)) {
this.labelDates.push(currentDateMessage)
const cloneMessage = new MessageServiceDateLabel()
cloneMessage.ChatSystemService = this.ChatSystemService