From d1e8497761862adb53c789b81ed159b4de938e41 Mon Sep 17 00:00:00 2001 From: Yash Rajpal <58601732+yash-rajpal@users.noreply.github.com> Date: Wed, 30 Oct 2024 03:06:33 +0530 Subject: [PATCH] chore: Remove unused `setUserActiveStatus` client meteor method (#33818) --- .changeset/curvy-flies-greet.md | 5 +++++ apps/meteor/client/methods/index.ts | 1 - apps/meteor/client/methods/setUserActiveStatus.ts | 9 --------- 3 files changed, 5 insertions(+), 10 deletions(-) create mode 100644 .changeset/curvy-flies-greet.md delete mode 100644 apps/meteor/client/methods/setUserActiveStatus.ts 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. 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; - }, -});