Get user re-querying working when they disconnect and improve the user status
This commit is contained in:
parent
1bf6cbbd45
commit
bb095a9b4e
5 changed files with 148 additions and 36 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { QueryManager } from "../utils/QueryManager.mjs";
|
||||
|
||||
Hooks.on(`userConnected`, (user) => {
|
||||
QueryManager.userActivity(user.id);
|
||||
Hooks.on(`userConnected`, (user, connected) => {
|
||||
if (user.isSelf) { return };
|
||||
QueryManager.userActivity(user.id, connected);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue