Skip to content

Commit 183191f

Browse files
committed
fix(sticker-picker): always register the sticker task type and provider and reference provider, rely on the listener to conditionally inject the sticker reference script
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
1 parent a9e1edf commit 183191f

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

lib/AppInfo/Application.php

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,12 @@ public function register(IRegistrationContext $context): void {
104104
if (class_exists('OCP\\TaskProcessing\\TaskTypes\\ContextAgentAudioInteraction')) {
105105
$context->registerTaskProcessingProvider(ContextAgentAudioInteractionProvider::class);
106106
}
107-
if ($this->appConfig->getValueString(Application::APP_ID, 'text_to_sticker_picker_enabled', '1') === '1') {
108-
$context->registerTaskProcessingTaskType(TextToStickerTaskType::class);
109-
$context->registerTaskProcessingProvider(TextToStickerProvider::class);
110-
$context->registerReferenceProvider(Text2StickerProvider::class);
111-
// TODO use this when we drop NC <= 31
112-
/*
113-
if (in_array(TextToStickerTaskType::ID, $this->taskProcessingManager->getAvailableTaskTypeIds(), true)) {
114-
$context->registerReferenceProvider(Text2StickerProvider::class);
115-
}
116-
*/
117-
}
107+
108+
// TODO use this when we drop NC <= 31
109+
// if (in_array(TextToImage::ID, $this->taskProcessingManager->getAvailableTaskTypeIds(), true)) {
110+
$context->registerTaskProcessingTaskType(TextToStickerTaskType::class);
111+
$context->registerTaskProcessingProvider(TextToStickerProvider::class);
112+
$context->registerReferenceProvider(Text2StickerProvider::class);
118113
}
119114

120115
public function boot(IBootContext $context): void {

0 commit comments

Comments
 (0)