-
Notifications
You must be signed in to change notification settings - Fork 56
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
Replace shutdown_room API with DELETE /_synapse/admin/v1/rooms/<room_… #117
Conversation
Not clear how I can test it. |
@Yoric has promised we can get this deployed in the week of 2021/08/09. |
src/Mjolnir.ts
Outdated
new_room_user_id: await this.client.getUserId(), | ||
block: true, | ||
message: message || "This room was shutdown by a moderator" |
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 should exclude the message so we can continue using the default
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.
I don't understand this comment. Should I remove "This room was shutdown by a moderator"
?
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.
yea, just so the default message from Synapse can be used.
package.json
Outdated
"@types/mocha": "^8.2.2", | ||
"@types/node": "11", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^16.4.5", | ||
"eslint": "^7.31.0", | ||
"expect": "^27.0.6", | ||
"mocha": "^9.0.1", | ||
"ts-mocha": "^8.0.0", | ||
"tslint": "^6.1.3", | ||
"typescript": "^4.3.5" | ||
"typescript": "^4.3.5", | ||
"typescript-formatter": "^7.2.2" |
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.
These changes appear unrelated
…id> - Resolves #76, closes #96 As per matrix-org/synapse#9052, shutdown_room is going away, to be replaced with DELETE /_synapse/admin/v1/rooms/<room_id>.
93547a7
to
6874f73
Compare
6874f73
to
b60f503
Compare
…without a message
…id> - Resolves #76, closes #96
As per matrix-org/synapse#9052, shutdown_room is going away, to be replaced with DELETE /_synapse/admin/v1/rooms/<room_id>.