From 7a34cdfea9ae251b1b1de44ba8c2b5ab470d89d5 Mon Sep 17 00:00:00 2001 From: yash-rajpal Date: Tue, 29 Oct 2024 03:50:53 +0530 Subject: [PATCH 1/2] remove unused client side meteor method --- apps/meteor/client/methods/index.ts | 1 - apps/meteor/client/methods/setUserActiveStatus.ts | 9 --------- 2 files changed, 10 deletions(-) delete mode 100644 apps/meteor/client/methods/setUserActiveStatus.ts diff --git a/apps/meteor/client/methods/index.ts b/apps/meteor/client/methods/index.ts index 990a3a20f24c..c29f49ffb65d 100644 --- a/apps/meteor/client/methods/index.ts +++ b/apps/meteor/client/methods/index.ts @@ -1,7 +1,6 @@ import './hideRoom'; import './openRoom'; import './pinMessage'; -import './setUserActiveStatus'; import './starMessage'; import './toggleFavorite'; import './unpinMessage'; diff --git a/apps/meteor/client/methods/setUserActiveStatus.ts b/apps/meteor/client/methods/setUserActiveStatus.ts deleted file mode 100644 index b6b9e0b778a7..000000000000 --- a/apps/meteor/client/methods/setUserActiveStatus.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type { ServerMethods } from '@rocket.chat/ddp-client'; -import { Meteor } from 'meteor/meteor'; - -Meteor.methods({ - setUserActiveStatus(userId, active) { - Meteor.users.update(userId, { $set: { active } }); - return true; - }, -}); From 9efb4ff5bd2896b6bec12b2d23c472b0bf2b4fd5 Mon Sep 17 00:00:00 2001 From: yash-rajpal Date: Tue, 29 Oct 2024 03:51:37 +0530 Subject: [PATCH 2/2] add changeset --- .changeset/curvy-flies-greet.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/curvy-flies-greet.md diff --git a/.changeset/curvy-flies-greet.md b/.changeset/curvy-flies-greet.md new file mode 100644 index 000000000000..aeac8382b152 --- /dev/null +++ b/.changeset/curvy-flies-greet.md @@ -0,0 +1,5 @@ +--- +'@rocket.chat/meteor': patch +--- + +Remove unused client side `setUserActiveStatus` meteor method.