Task lists WIP

This commit is contained in:
John Livingston
2024-04-30 18:30:44 +02:00
parent ca026c2e10
commit 22561b4daa
13 changed files with 205 additions and 10 deletions

View File

@ -8,6 +8,13 @@ import { Model } from '@converse/skeletor/src/model.js'
*/
class ChatRoomTaskList extends Model {
idAttribute = 'id'
getTasks () {
const taskListId = this.get('id')
return this.collection?.chatroom?.tasks?.filter({
list: taskListId
}) ?? []
}
}
export {