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:
parent
dfeef5e2d6
commit
92018b9a63
@ -87,18 +87,10 @@ public function readData() {
|
|||||||
$this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES);
|
$this->newestMessages = chat\message\ChatMessageList::getNewestMessages($this->room, CHAT_LASTMESSAGES);
|
||||||
\wcf\util\ChatUtil::writeUserData(array('lastSeen' => end($this->newestMessages)->messageID));
|
\wcf\util\ChatUtil::writeUserData(array('lastSeen' => end($this->newestMessages)->messageID));
|
||||||
|
|
||||||
$this->readDefaultSmileys();
|
$this->smilies = \wcf\data\smiley\SmileyCache::getInstance()->getCategorySmilies();
|
||||||
$this->readChatVersion();
|
$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()
|
* @see \wcf\page\IPage::readParameters()
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user