There was an error while loading. Please reload this page.
2 parents 4b8dc8c + c7348d2 commit f6026b8Copy full SHA for f6026b8
1 file changed
library/Chat/Render/ChatBubble.php
@@ -22,12 +22,16 @@ public function addHooks(): void
22
23
public function render(): void
24
{
25
- if (!$this->config->isGlobalChatEnabled() || empty($this->config->getDefaultAssistant())) {
+ $assistant = $this->config->getAssistantForActiveQuery();
26
+
27
+ if (
28
+ (!$this->config->isGlobalChatEnabled() ||
29
+ empty($this->config->getDefaultAssistant())) &&
30
+ empty($assistant)
31
+ ) {
32
return;
33
}
34
- $assistant = $this->config->getAssistantForActiveQuery();
-
35
$config = new ChatRenderConfig(
36
$this->wpService,
37
$this->config,
0 commit comments