1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00

Optimizing reading of smilies.

This commit is contained in:
Tim Düsterhus 2012-03-08 21:27:54 +01:00
parent dfeef5e2d6
commit 92018b9a63

View File

@ -87,18 +87,10 @@ public function readData() {
$this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES);
\wcf\util\ChatUtil::writeUserData(array('lastSeen' => end($this->newestMessages)->messageID));
$this->readDefaultSmileys();
$this->smilies = \wcf\data\smiley\SmileyCache::getInstance()->getCategorySmilies();
$this->readChatVersion();
}
/**
* Reads the smilies in the default category.
*/
public function readDefaultSmileys() {
$smilies = \wcf\data\smiley\SmileyCache::getInstance()->getSmilies();
$this->smilies = $smilies[null];
}
/**
* @see \wcf\page\IPage::readParameters()
*/