import BasePlugin from "./basePlugin" ; export default class ThreadToChannel extends BasePlugin { private observe ( query ) { this . setUpObserver ( query , { attributes : false , childList : true , subtree : true } , ( nodes , _ ) => { const containers = nodes . filter ( n => n . className && ( n . className === "c-virtual_list__item" || n . className === "reply_container_info" ) ) ; for ( const container of containers ) { const checkbox = container . querySelector ( 'input[type="checkbox"]' ) ; if ( checkbox ) { this . updateReactCheckbox ( checkbox , true ) ; } } } ) ; } public async init ( ) { this . observe ( "#convo_tab" ) ; this . observe ( "#messages_container" ) ; } }