Chore: Migrate REST API - sendEmailCode to Typescript (#3905)

This commit is contained in:
Alex Junior 2022-03-15 21:43:44 -03:00 committed by GitHub
parent 0023f0e195
commit 4666bdf9d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 6 deletions

View File

@ -365,12 +365,6 @@ const RocketChat = {
methodCall(...args) { methodCall(...args) {
return sdk.methodCall(...args); return sdk.methodCall(...args);
}, },
addUsersToRoom(rid) {
let { users } = reduxStore.getState().selectedUsers;
users = users.map(u => u.name);
// RC 0.51.0
return this.methodCallWrapper('addUsersToRoom', { rid, users });
},
hasRole(role) { hasRole(role) {
const shareUser = reduxStore.getState().share.user; const shareUser = reduxStore.getState().share.user;
const loginUser = reduxStore.getState().login.user; const loginUser = reduxStore.getState().login.user;