Bouton pour supprimer les anciens messages

This commit is contained in:
2025-12-17 22:28:08 +01:00
parent 9fd6d9026a
commit a52d10a3b3
7 changed files with 106 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ import { RdDTextEditor } from "./apps/rdd-text-roll-editor.js";
/**
* Class providing helper methods to get the list of users, and
* Class providing helper methods around the Chat message
*/
export class ChatUtility {
@@ -233,7 +233,12 @@ export class ChatUtility {
static async setTimestamp(chatMessage) {
await chatMessage.setFlag(SYSTEM_RDD, 'rdd-timestamp', game.system.rdd.calendrier.getTimestamp());
}
// TODO: find ChatLog to change the action for data-action flush
static getISODate(chatMessage) {
const date = new Date(chatMessage.timestamp);
return date?.toISOString().substring(0, 10)
}
// async flush() {
// const question = game.i18n.localize("AreYouSure");