File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { Meteor } from 'meteor/meteor';
55
66import { RoomMemberActions } from '../../../../definition/IRoomTypeConfig' ;
77import { roomCoordinator } from '../../../../server/lib/rooms/roomCoordinator' ;
8- import { methodDeprecationLogger } from '../lib/deprecationWarningLogger' ;
98import { notifyOnSubscriptionChangedByRoomIdAndUserIds } from '../lib/notifyListener' ;
109
1110declare module '@rocket.chat/ddp-client' {
@@ -20,7 +19,6 @@ Meteor.methods<ServerMethods>({
2019 * @deprecated Scheduled for removal in 9.0.0. No caller found in this repository — kept for external DDP clients only.
2120 */
2221 async blockUser ( { rid, blocked } ) {
23- methodDeprecationLogger . method ( 'blockUser' , '9.0.0' , [ ] ) ;
2422 check ( rid , String ) ;
2523 check ( blocked , String ) ;
2624 const userId = Meteor . userId ( ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import { check } from 'meteor/check';
55import { Meteor } from 'meteor/meteor' ;
66
77import { hasPermissionAsync } from '../../../authorization/server/functions/hasPermission' ;
8- import { methodDeprecationLogger } from '../lib/deprecationWarningLogger' ;
98
109declare module '@rocket.chat/ddp-client' {
1110 // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -16,7 +15,7 @@ declare module '@rocket.chat/ddp-client' {
1615/* @deprecated */
1716Meteor . methods < ServerMethods > ( {
1817 async getRoomJoinCode ( rid ) {
19- methodDeprecationLogger . method ( 'getRoomJoinCode' , '9.0.0' , [ ] ) ;
18+
2019 check ( rid , String ) ;
2120
2221 const userId = Meteor . userId ( ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { Subscriptions } from '@rocket.chat/models';
33import { check } from 'meteor/check' ;
44import { Meteor } from 'meteor/meteor' ;
55
6- import { methodDeprecationLogger } from '../lib/deprecationWarningLogger' ;
76import { notifyOnSubscriptionChangedByRoomIdAndUserIds } from '../lib/notifyListener' ;
87
98declare module '@rocket.chat/ddp-client' {
@@ -18,7 +17,6 @@ Meteor.methods<ServerMethods>({
1817 * @deprecated Scheduled for removal in 9.0.0. No caller found in this repository — kept for external DDP clients only.
1918 */
2019 async unblockUser ( { rid, blocked } ) {
21- methodDeprecationLogger . method ( 'unblockUser' , '9.0.0' , [ ] ) ;
2220 check ( rid , String ) ;
2321 check ( blocked , String ) ;
2422 const userId = Meteor . userId ( ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import { License } from '@rocket.chat/license';
44import { check } from 'meteor/check' ;
55import { Meteor } from 'meteor/meteor' ;
66
7- import { methodDeprecationLogger } from '../../../../app/lib/server/lib/deprecationWarningLogger' ;
87
98declare module '@rocket.chat/ddp-client' {
109 // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -32,7 +31,7 @@ Meteor.methods<ServerMethods>({
3231 * @deprecated Scheduled for removal in 9.0.0. No caller found in this repository — kept for external DDP clients only.
3332 */
3433 'license:getTags' ( ) {
35- methodDeprecationLogger . method ( 'license:getTags' , '9.0.0' , [ ] ) ;
34+
3635 return License . getTags ( ) ;
3736 } ,
3837 'license:isEnterprise' ( ) {
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { UserStatus } from '@rocket.chat/core-typings';
33import type { ServerMethods } from '@rocket.chat/ddp-client' ;
44import { Meteor } from 'meteor/meteor' ;
55
6- import { methodDeprecationLogger } from '../../app/lib/server/lib/deprecationWarningLogger' ;
76
87declare module '@rocket.chat/ddp-client' {
98 // eslint-disable-next-line @typescript-eslint/naming-convention
@@ -19,7 +18,7 @@ Meteor.methods<ServerMethods>({
1918 * @deprecated Scheduled for removal in 9.0.0. No caller found in this repository — kept for external DDP clients only.
2019 */
2120 'UserPresence:setDefaultStatus' ( status ) {
22- methodDeprecationLogger . method ( 'UserPresence:setDefaultStatus' , '9.0.0' , [ ] ) ;
21+
2322 const { userId } = this ;
2423 if ( ! userId ) {
2524 return ;
You can’t perform that action at this time.
0 commit comments