Unverified Commit 4666bdf9 authored by Alex Junior's avatar Alex Junior Committed by GitHub
Browse files

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

parent 0023f0e1
......@@ -365,12 +365,6 @@ const RocketChat = {
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) {
const shareUser = reduxStore.getState().share.user;
const loginUser = reduxStore.getState().login.user;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment