Browse Source

Fix message delimitor in Chat

pull/736/head
Timothée Jaussoin 7 years ago
parent
commit
f4d139df77
  1. 8
      app/widgets/Chat/Chat.php

8
app/widgets/Chat/Chat.php

@ -233,10 +233,6 @@ class Chat extends \Movim\Widget\Base
$this->rpc('MovimTpl.fill', '#chat_widget', $this->prepareEmpty());
$this->rpc('MovimTpl.hidePanel');
} else {
$notif = new Notification;
$notif->ajaxClear('chat|'.$jid);
$this->rpc('Notification.current', 'chat|'.$jid);
if ($light == false) {
$this->rpc('MovimUtils.pushState', $this->route('chat', $jid));
$this->rpc('MovimTpl.fill', '#chat_widget', $this->prepareChat($jid));
@ -245,6 +241,10 @@ class Chat extends \Movim\Widget\Base
}
$this->prepareMessages($jid);
$notif = new Notification;
$notif->ajaxClear('chat|'.$jid);
$this->rpc('Notification.current', 'chat|'.$jid);
}
}

Loading…
Cancel
Save