From 3f06b5cd1a262aec82eaddbbfe59b7cc85af5d37 Mon Sep 17 00:00:00 2001 From: ArnabChatterjee20k Date: Thu, 16 Apr 2026 11:13:37 +0530 Subject: [PATCH] Enhance presence deletion by adding payload to event queue after document removal --- src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php b/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php index 7853abe905..e3baaf9c3d 100644 --- a/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php +++ b/src/Appwrite/Platform/Modules/Presences/HTTP/Delete.php @@ -65,7 +65,10 @@ class Delete extends Base } $dbForProject->deleteDocument('presenceLogs', $presenceId); - $queueForEvents->setParam('presenceId', $presence->getId()); + + $queueForEvents + ->setParam('presenceId', $presence->getId()) + ->setPayload($response->output($presence, Response::MODEL_PRESENCE)); $response->noContent(); }