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