diff --git a/lhc_web/modules/lhxml/chatssynchro.php b/lhc_web/modules/lhxml/chatssynchro.php index ba63efb8f5..ef87bf6a8f 100644 --- a/lhc_web/modules/lhxml/chatssynchro.php +++ b/lhc_web/modules/lhxml/chatssynchro.php @@ -42,6 +42,14 @@ if ($msgID < $msg['id']) $chatsMessages[$msgID][] = $msg; } } + + if ( $Chat->has_unread_messages == 1 || $Chat->unread_messages_informed == 1) { + $Chat->has_unread_messages = 0; + $Chat->unread_messages_informed = 0; + $Chat->saveThis(); + } + + } else { if ($Chat->is_user_typing) { $chatStatusMessage = $Chat->user_typing_txt;