1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Fix newest messages

This commit is contained in:
Tim Düsterhus 2013-06-23 17:54:32 +02:00
parent e0859c5952
commit 101e90d906

View File

@ -221,7 +221,7 @@ public function join() {
$messageAction->executeAction();
}
$newestMessages = message\ViewableMessageList::getNewestMessages($room, CHAT_LASTMESSAGES);
$newestMessages = message\ViewableMessageList::getNewestMessages($room, CHAT_LASTMESSAGES + 1);
try {
$lastSeen = end($newestMessages)->messageID;