Moderator notes WIP (#144)

This commit is contained in:
John Livingston
2024-07-30 19:47:20 +02:00
parent 704e660f37
commit 9c2b84027a
6 changed files with 121 additions and 6 deletions

View File

@ -3,7 +3,7 @@
// SPDX-License-Identifier: AGPL-3.0-only
import { XMLNS_NOTE } from './constants.js'
import { PubSubManager } from '../../shared/lib/pubsub-manager.js'
import { NotePubSubManager } from './note-pubsub-manager.js'
import { converse, _converse, api } from '../../../src/headless/index.js'
import { __ } from 'i18n'
@ -87,7 +87,7 @@ function _initChatRoomNotes (mucModel) {
mucModel.notes = new _converse.exports.ChatRoomNotes(undefined, { chatroom: mucModel })
mucModel.noteManager = new PubSubManager(
mucModel.noteManager = new NotePubSubManager(
mucModel.get('jid'),
'livechat-notes', // the node name
{