From d18de7d1e8a09609d50124788bdfbe9c3c3060ec Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Mon, 18 May 2026 10:42:11 +0530 Subject: [PATCH] feat: add checkForProjectUsage function and integrate it into message handling --- app/realtime.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/realtime.php b/app/realtime.php index 2bc8123fd9..26041fea1d 100644 --- a/app/realtime.php +++ b/app/realtime.php @@ -326,6 +326,12 @@ if (!function_exists('triggerStats')) { } } +if (!function_exists('checkForProjectUsage')) { + function checkForProjectUsage(Document $project): void + { + } +} + $realtime = getRealtime(); $presenceState = new PresenceState(); @@ -1086,6 +1092,10 @@ $server->onMessage(function (int $connection, string $message) use ($container, $project = null; } + if ($project !== null) { + checkForProjectUsage($project); + } + /* * Abuse Check *