Slow Mode WIP (#192):

* frontend: display an infobox when slow mode is active (WIP)
This commit is contained in:
John Livingston
2024-02-16 14:34:34 +01:00
parent 9efd53b2a7
commit 1e876ec43c
7 changed files with 70 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import {
} from './lib/converse-params'
import { getLocalAuthentInfos } from './lib/auth'
import { randomNick, getPreviousAnonymousNick, setPreviousAnonymousNick } from './lib/nick'
import { slowModePlugin } from './lib/slow-mode/plugin'
declare global {
interface Window {
@ -109,6 +110,8 @@ window.initConverse = async function initConverse (initConverseParams: InitConve
}
})
converse.plugins.add('converse-slow-mode', slowModePlugin)
// livechatSpecifics plugins add some customization for the livechat plugin.
converse.plugins.add('livechatSpecifics', {
dependencies: ['converse-muc', 'converse-muc-views'],