From 2415e92888a534a868e27a1a13c2ce505c11fc9a Mon Sep 17 00:00:00 2001 From: Robson da Rosa Soares Date: Thu, 3 Feb 2022 22:19:44 -0300 Subject: [PATCH] binary condition in attachments --- src/Chat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Chat.php b/src/Chat.php index 4c55064..e2bda62 100644 --- a/src/Chat.php +++ b/src/Chat.php @@ -44,7 +44,7 @@ public function renderItem($model, $key, $index) '{{sign}}' => $receive->right? 'right': 'left', '{{message}}' => $receive->message, '{{title}}' => $receive->title, - '{{attachment}}' => 'Anexos:
'.$receive->attachment, + '{{attachment}}' => $receive->attachment ? "Anexos:
{$receive->attachment}" : '', ]); } }