From 44a2659550ab7fd73dc3f5bba6b46b0e556b6ac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 27 Feb 2014 19:14:32 +0100 Subject: [PATCH] Add nodePush for room changes --- file/js/be.bastelstu.Chat.litcoffee | 1 + file/lib/data/room/RoomEditor.class.php | 1 + 2 files changed, 2 insertions(+) diff --git a/file/js/be.bastelstu.Chat.litcoffee b/file/js/be.bastelstu.Chat.litcoffee index ece9177..3e13b93 100644 --- a/file/js/be.bastelstu.Chat.litcoffee +++ b/file/js/be.bastelstu.Chat.litcoffee @@ -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. diff --git a/file/lib/data/room/RoomEditor.class.php b/file/lib/data/room/RoomEditor.class.php index 3510894..2e419dd 100644 --- a/file/lib/data/room/RoomEditor.class.php +++ b/file/lib/data/room/RoomEditor.class.php @@ -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'); } }