-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
Meteor.call
with call
in client/startup
- Loading branch information
Showing
33 changed files
with
269 additions
and
167 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
10 changes: 9 additions & 1 deletion
10
apps/meteor/app/autotranslate/server/methods/translateMessage.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
apps/meteor/app/custom-sounds/server/methods/listCustomSounds.js
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
apps/meteor/app/custom-sounds/server/methods/listCustomSounds.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Meteor } from 'meteor/meteor'; | ||
import { CustomSounds } from '@rocket.chat/models'; | ||
import type { ICustomSound } from '@rocket.chat/core-typings'; | ||
|
||
declare module '@rocket.chat/ui-contexts' { | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
interface ServerMethods { | ||
listCustomSounds: () => ICustomSound[]; | ||
} | ||
} | ||
|
||
Meteor.methods({ | ||
async listCustomSounds() { | ||
return CustomSounds.find({}).toArray(); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...or/app/lib/server/methods/getUserRoles.js → ...or/app/lib/server/methods/getUserRoles.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
...e-mark-as-unread/server/unreadMessages.js → ...e-mark-as-unread/server/unreadMessages.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.