Chore: Migrate REST API - sendEmailCode to Typescript (#3905)
This commit is contained in:
parent
0023f0e195
commit
4666bdf9d5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue