Skip to content

Commit f6026b8

Browse files
authored
Merge pull request #2134 from helsingborg-stad/fix/allow-specified-chat-bubble-to-appear-based-on-page
fix: allow specified chat bubble to appear based on page
2 parents 4b8dc8c + c7348d2 commit f6026b8

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

library/Chat/Render/ChatBubble.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ public function addHooks(): void
2222

2323
public function render(): void
2424
{
25-
if (!$this->config->isGlobalChatEnabled() || empty($this->config->getDefaultAssistant())) {
25+
$assistant = $this->config->getAssistantForActiveQuery();
26+
27+
if (
28+
(!$this->config->isGlobalChatEnabled() ||
29+
empty($this->config->getDefaultAssistant())) &&
30+
empty($assistant)
31+
) {
2632
return;
2733
}
2834

29-
$assistant = $this->config->getAssistantForActiveQuery();
30-
3135
$config = new ChatRenderConfig(
3236
$this->wpService,
3337
$this->config,

0 commit comments

Comments
 (0)