Browse Source

Fix an error in the onNotificationCounterClear method

feature/templater
Timothée Jaussoin 3 months ago
parent
commit
7ec513672f
  1. 4
      app/Widgets/Chat/Chat.php

4
app/Widgets/Chat/Chat.php

@ -146,9 +146,9 @@ class Chat extends \Movim\Widget\Base
public function onNotificationCounterClear($params)
{
list($page, $jid) = array_pad($params, 3, null);
$jid = $params[1] ?? null;
if ($page === 'chat') {
if ($params[0] === 'chat' && $jid) {
// Check if the jid is a connected chatroom
$presence = $this->user->session->presences()
->where('jid', $jid)

Loading…
Cancel
Save