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

@ -167,7 +167,7 @@ async function displayConverseJS (
const converseJSParams: InitConverseJSParams = await (response).json()
if (!pollListenerInitiliazed) {
// First time we got here, initiliaze this event:
// First time we got here, initialize this event:
const i18nVoteOk = await clientOptions.peertubeHelpers.translate(LOC_POLL_VOTE_OK)
pollListenerInitiliazed = true
document.addEventListener('livechat-poll-vote', () => {