Merge pull request #5114 from matrix-org/t3chguy/cherry-pick/5109
Fix /op slash command to release
This commit is contained in:
commit
315435e3ef
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ export const Commands = [
|
|||
const cli = MatrixClientPeg.get();
|
||||
const room = cli.getRoom(roomId);
|
||||
if (!room) return reject(_t("Command failed"));
|
||||
const member = room.getMember(args);
|
||||
const member = room.getMember(userId);
|
||||
if (!member || getEffectiveMembership(member.membership) === EffectiveMembership.Leave) {
|
||||
return reject(_t("Could not find user in room"));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue