1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-01-22 02:00:40 +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 @@ class RoomAction extends \wcf\data\AbstractDatabaseObjectAction implements \wcf\
$messageAction->executeAction();
}
$newestMessages = message\ViewableMessageList::getNewestMessages($room, CHAT_LASTMESSAGES + 1);
$newestMessages = message\ViewableMessageList::getNewestMessages($room, CHAT_LASTMESSAGES + CHAT_DISPLAY_JOIN_LEAVE);
try {
$lastSeen = end($newestMessages)->messageID;