-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add command to elevate a user (or the bot) as room administrator #219
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the PR!
I have a few nitpicks, mostly on the test.
Also use getRoomStateEvent to fetch the actual m.room.power_levels state event.
Also update tests to call done() in case the command is not enabled in the config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're getting quite close!
- Textual description/error messages changes - Make the command disabled by default
@maranda When you're ready for another review, don't forget to ping me :) |
@Yoric ready :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks a lot!
Ready to merge when you are.
@Yoric 👌 |
This is a rebase of #126. I added tests yet as of now only the first self test works the second never does, fwiw I passed hours checking the correctness of the code (tried dozens and dozens of variants) and that there's not an error on my part.
The problem always happen when getFirstReaction() gets called on the second test, the message gets sent correctly in the management room, yet Mjolnir doesn't seem to pick it up.. So the problem looks to be into the mx-tester's boilerplate at this rate.