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:
parent
fb551a46ee
commit
44a2659550
@ -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.
|
||||
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user