mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-04-03 11:14:52 +00:00
Fix newest messages when DISPLAY_JOIN_LEAVE is false
This commit is contained in:
parent
101e90d906
commit
8ac930b952
@ -221,7 +221,7 @@ class RoomAction extends \wcf\data\AbstractDatabaseObjectAction implements \wcf\
|
|||||||
$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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user