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:
parent
101e90d906
commit
8ac930b952
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user