diff --git a/file/lib/page/ChatPage.class.php b/file/lib/page/ChatPage.class.php index f8a26e6..47cb50e 100644 --- a/file/lib/page/ChatPage.class.php +++ b/file/lib/page/ChatPage.class.php @@ -127,7 +127,7 @@ public function readData() { $messageAction->getReturnValues(); } - $this->newestMessages = data\message\MessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES); + $this->newestMessages = data\message\ViewableMessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES); try { $lastSeen = end($this->newestMessages)->messageID; }