Adrià Vilanova MartÃnez | 66836fd | 2024-05-04 22:43:06 +0200 | [diff] [blame] | 1 | import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler'; |
| 2 | import { NodeMutation } from '../../../../common/nodeWatcher/NodeWatcherHandler'; |
| 3 | import { CCExtraInfoMainOptions } from '../../scripts/ccExtraInfoMain.script'; |
| 4 | |
| 5 | /** |
| 6 | * Inject extra info to threads in the thread list. |
| 7 | */ |
| 8 | export default class CCExtraInfoThreadReplyHandler extends CssSelectorNodeWatcherScriptHandler<CCExtraInfoMainOptions> { |
| 9 | cssSelector = 'sc-tailwind-thread-message-message-list sc-tailwind-thread-message-message-card'; |
| 10 | |
| 11 | onMutatedNode({ node }: NodeMutation) { |
| 12 | this.options.extraInfo.injectAtReplyIfEnabled(node); |
| 13 | } |
| 14 | } |