Task lists WIP
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user