mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
make test more specific
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
6eee39c153
commit
b4e2e54dc1
@ -730,7 +730,7 @@ export const Commands = [
|
||||
const room = cli.getRoom(roomId);
|
||||
if (!room) return reject(_t("Command failed"));
|
||||
const member = room.getMember(args);
|
||||
if (!member) return reject(_t("Could not find user in room"));
|
||||
if (!member || member.membership !== "join") return reject(_t("Could not find user in room"));
|
||||
const powerLevelEvent = room.currentState.getStateEvents('m.room.power_levels', '');
|
||||
return success(cli.setPowerLevel(roomId, userId, powerLevel, powerLevelEvent));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user