1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Fix newest messages when DISPLAY_JOIN_LEAVE is false

This commit is contained in:
Tim Düsterhus 2013-06-23 17:55:29 +02:00
parent 101e90d906
commit 8ac930b952

View File

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