We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 015838e commit 828c349Copy full SHA for 828c349
src/GoogleChatHandler.php
@@ -94,10 +94,12 @@ protected function formatMessage(LogRecord $record): string
94
protected function sendWithRetry(array $payload, int $attempt = 1)
95
{
96
$url = $this->webhookUrl;
97
- if (str_contains($url, '?')) {
98
- $url .= '&messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD';
99
- } else {
100
- $url .= '?messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD';
+ if (!empty($payload['thread'])) {
+ if (str_contains($url, '?')) {
+ $url .= '&messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD';
+ } else {
101
+ $url .= '?messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD';
102
+ }
103
}
104
105
try {
0 commit comments