diff options
author | Joas Schilling <coding@schilljs.com> | 2024-02-01 09:28:58 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2024-02-01 09:28:58 +0100 |
commit | 43984458e60a8cdfca8ec1dcbc3a44a86242a0b5 (patch) | |
tree | 1eef5dcfdb6906758482c4e16e856db13168f913 /lib | |
parent | d76d0e2538c020f03dbc05b3f77605829f647191 (diff) |
fix(chat): Ensure silent exists before accessing it
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Model/Message.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Model/Message.php b/lib/Model/Message.php index f2123b1a7..fe1140347 100644 --- a/lib/Model/Message.php +++ b/lib/Model/Message.php @@ -221,7 +221,7 @@ class Message { } $metaData = $this->comment->getMetaData() ?? []; - if ($metaData['silent']) { + if (!empty($metaData['silent'])) { $data['silent'] = true; } |