From 9679aec73986d5349b0c29535d4e056271bee734 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Thu, 11 Jul 2024 15:42:12 +0200 Subject: [PATCH] Moderation delay: fix accessibility on the timer shown to moderators. --- CHANGELOG.md | 6 ++++++ conversejs/lib/plugins/moderation-delay.ts | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bc064151..ac5241e6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## ??? (Not Released Yet) + +### Minor changes and fixes + +* Moderation delay: fix accessibility on the timer shown to moderators. + ## 10.3.0 ### New features diff --git a/conversejs/lib/plugins/moderation-delay.ts b/conversejs/lib/plugins/moderation-delay.ts index 70945adc..d8c6bfc7 100644 --- a/conversejs/lib/plugins/moderation-delay.ts +++ b/conversejs/lib/plugins/moderation-delay.ts @@ -42,7 +42,7 @@ export const moderationDelayPlugin = { // Ok... We will add some info about how many remains... r.pretty_time = window.converse.env.html` - ${r.pretty_time} - ${Math.round(remains)}⏱ + ${r.pretty_time} ` // and we must update in 1 second... setTimeout(() => this.requestUpdate(), 1000)