Skip to content

Commit ae68dbc

Browse files
committed
Merge remote-tracking branch 'origin/develop' into chore/federation-backup
2 parents 8617d58 + c124c49 commit ae68dbc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/fifty-ducks-vanish.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@rocket.chat/meteor": patch
3+
---
4+
5+
Adds deprecation warning on `saveCannedResponse`

apps/meteor/ee/app/canned-responses/server/methods/saveCannedResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { Match, check } from 'meteor/check';
55
import { Meteor } from 'meteor/meteor';
66

77
import { hasPermissionAsync } from '../../../../../app/authorization/server/functions/hasPermission';
8+
import { methodDeprecationLogger } from '../../../../../app/lib/server/lib/deprecationWarningLogger';
89
import notifications from '../../../../../app/notifications/server/lib/Notifications';
910

1011
type ResponseData = {
@@ -122,6 +123,7 @@ export const saveCannedResponse = async (
122123

123124
Meteor.methods<ServerMethods>({
124125
async saveCannedResponse(_id, responseData) {
126+
methodDeprecationLogger.method('saveCannedResponse', '8.0.0', 'POST /v1/canned-responses');
125127
const userId = Meteor.userId();
126128
if (!userId) {
127129
throw new Meteor.Error('error-not-allowed', 'Not allowed', { method: 'saveCannedResponse' });

0 commit comments

Comments
 (0)