Task lists WIP:

* Fix frontend form
This commit is contained in:
John Livingston
2024-05-03 15:03:24 +02:00
parent ff976ee0ad
commit e8e8af855d
3 changed files with 17 additions and 3 deletions

View File

@ -83,9 +83,11 @@ class ChatRoomTaskLists extends Collection {
const name = data?.name
if (!name) { throw new Error('Missing name') }
console.log('Creating task list ' + name + '...')
const item = $build('item').c('tasklist', { xmlns: XMLNS_TASKLIST })
item.c('name').t(name)
await api.pubsub.publish(this.chatroom.get('jid'), 'livechat-tasks', item)
console.log('Task list ' + name + ' created.')
}
}