Poll fixes:

* update poll banner when user role changes
* don't show instructions if user can't vote
This commit is contained in:
John Livingston
2024-07-05 14:48:02 +02:00
parent 867c1debd6
commit 914de79400
3 changed files with 11 additions and 9 deletions

View File

@ -16,11 +16,6 @@ converse.plugins.add('livechat-converse-poll', {
dependencies: ['converse-muc', 'converse-disco'],
initialize () {
// _converse.api.listen.on('chatRoomInitialized', muc => {
// muc.features.on('change:' + XMLNS_POLL, () => {
// // TODO: refresh headingbuttons?
// })
// })
// adding the poll actions in the MUC heading buttons:
_converse.api.listen.on('getHeadingButtons', getHeadingButtons)