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

Add nodePush for room changes

This commit is contained in:
Tim Düsterhus 2014-02-27 19:14:32 +01:00
parent fb551a46ee
commit 44a2659550
2 changed files with 2 additions and 0 deletions

View File

@ -351,6 +351,7 @@ load messages if the appropriate event arrives.
be.bastelstu.wcf.nodePush.onMessage 'be.bastelstu.chat.newMessage', getMessages
be.bastelstu.wcf.nodePush.onMessage 'be.bastelstu.wcf.nodePush.tick60', getMessages
be.bastelstu.wcf.nodePush.onMessage 'be.bastelstu.chat.roomChange', refreshRoomList
Finished! Enable the input now and join the chat.

View File

@ -61,5 +61,6 @@ public static function deleteAll(array $objectIDs = array()) {
public static function resetCache() {
\chat\system\cache\builder\RoomCacheBuilder::getInstance()->reset();
\chat\system\cache\builder\PermissionCacheBuilder::getInstance()->reset();
\wcf\system\nodePush\NodePushHandler::getInstance()->sendMessage('be.bastelstu.chat.roomChange');
}
}