1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2025-04-04 11:24:51 +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.chat.newMessage', getMessages
be.bastelstu.wcf.nodePush.onMessage 'be.bastelstu.wcf.nodePush.tick60', 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. Finished! Enable the input now and join the chat.

View File

@ -61,5 +61,6 @@ class RoomEditor extends \wcf\data\DatabaseObjectEditor implements \wcf\data\IEd
public static function resetCache() { public static function resetCache() {
\chat\system\cache\builder\RoomCacheBuilder::getInstance()->reset(); \chat\system\cache\builder\RoomCacheBuilder::getInstance()->reset();
\chat\system\cache\builder\PermissionCacheBuilder::getInstance()->reset(); \chat\system\cache\builder\PermissionCacheBuilder::getInstance()->reset();
\wcf\system\nodePush\NodePushHandler::getInstance()->sendMessage('be.bastelstu.chat.roomChange');
} }
} }