parent
054067abbe
commit
38701f3e71
1 changed files with 1 additions and 1 deletions
|
@ -733,7 +733,7 @@ export const Commands = [
|
||||||
const cli = MatrixClientPeg.get();
|
const cli = MatrixClientPeg.get();
|
||||||
const room = cli.getRoom(roomId);
|
const room = cli.getRoom(roomId);
|
||||||
if (!room) return reject(_t("Command failed"));
|
if (!room) return reject(_t("Command failed"));
|
||||||
const member = room.getMember(args);
|
const member = room.getMember(userId);
|
||||||
if (!member || getEffectiveMembership(member.membership) === EffectiveMembership.Leave) {
|
if (!member || getEffectiveMembership(member.membership) === EffectiveMembership.Leave) {
|
||||||
return reject(_t("Could not find user in room"));
|
return reject(_t("Could not find user in room"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue