Implements #146: copy message button for moderators

We overload the copy message method that comes with Converse 11, to add
the message metadata (nick and full date).
This commit is contained in:
John Livingston
2024-07-26 10:51:55 +02:00
parent dd4bca8c06
commit f88520d925
4 changed files with 36 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import { customizeToolbar } from './livechat-specific/toolbar'
import { initReconnectionStuff } from './livechat-specific/reconnection'
import { chatRoomOverrides } from './livechat-specific/chatroom'
import { chatRoomMessageOverrides } from './livechat-specific/chatroom-message'
import { customizeMessageAction } from './livechat-specific/message-action'
export const livechatSpecificsPlugin = {
dependencies: ['converse-muc', 'converse-muc-views'],
@ -22,6 +23,7 @@ export const livechatSpecificsPlugin = {
customizeHeading(this)
customizeToolbar(this)
customizeMessageAction(this)
_converse.api.listen.on('chatRoomViewInitialized', function (this: any, _model: any): void {
// Remove the spinner if present...