mirror of
https://github.com/wbbaddons/Tims-Chat.git
synced 2025-01-09 00:20:08 +00:00
Fix newest messages
This commit is contained in:
parent
e0859c5952
commit
101e90d906
@ -221,7 +221,7 @@ public function join() {
|
|||||||
$messageAction->executeAction();
|
$messageAction->executeAction();
|
||||||
}
|
}
|
||||||
|
|
||||||
$newestMessages = message\ViewableMessageList::getNewestMessages($room, CHAT_LASTMESSAGES);
|
$newestMessages = message\ViewableMessageList::getNewestMessages($room, CHAT_LASTMESSAGES + 1);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$lastSeen = end($newestMessages)->messageID;
|
$lastSeen = end($newestMessages)->messageID;
|
||||||
|
Loading…
Reference in New Issue
Block a user