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

@ -97,8 +97,8 @@ export function initOrDestroyChatRoomTaskLists (mucModel) {
}
const myself = mucModel.getOwnOccupant()
if (!myself || !myself.isModerator()) {
// User must be moderator
if (!myself || !['admin', 'owner'].includes(myself.get('affiliation'))) {
// User must be admin or owner
return _destroyChatRoomTaskLists(mucModel)
}