Skip to content

Commit

Permalink
Mark unread messages as read one
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Sep 22, 2014
1 parent fe56995 commit 28c54cf
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lhc_web/modules/lhxml/chatssynchro.php
Expand Up @@ -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;
Expand Down

0 comments on commit 28c54cf

Please sign in to comment.