Get user re-querying working when they disconnect and improve the user status

This commit is contained in:
Oliver 2025-11-19 21:02:49 -07:00
parent 1bf6cbbd45
commit bb095a9b4e
5 changed files with 148 additions and 36 deletions

View file

@ -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);
});