Task lists WIP:

* dropping role support, does not work.
This commit is contained in:
John Livingston
2024-05-09 18:17:51 +02:00
parent 4f8e11d17d
commit a976b2a1d8
4 changed files with 11 additions and 21 deletions

View File

@ -25,8 +25,8 @@ converse.plugins.add('livechat-converse-tasks', {
initOrDestroyChatRoomTaskLists(muc)
})
// When the current user role changes, we must also delete or initilize the TaskLists object:
muc.occupants.on('change:role', occupant => {
// When the current user affiliation changes, we must also delete or initiliaze the TaskLists object:
muc.occupants.on('change:affiliation', occupant => {
if (occupant.get('jid') !== _converse.bare_jid) { // only for myself
return
}