Skip to content
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

Merged
merged 3 commits into from
Aug 17, 2021

Conversation

Yoric
Copy link
Contributor

@Yoric Yoric commented Jul 28, 2021

…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>.

@Yoric Yoric requested a review from turt2live July 28, 2021 09:01
@Yoric
Copy link
Contributor Author

Yoric commented Jul 28, 2021

Not clear how I can test it.

@richvdh
Copy link
Member

richvdh commented Aug 2, 2021

@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"
Copy link
Member

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

Copy link
Contributor Author

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"?

Copy link
Member

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.

src/commands/ShutdownRoomCommand.ts Show resolved Hide resolved
package.json Outdated
Comment on lines 17 to 25
"@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"
Copy link
Member

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>.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace shutdown_room and purge_room APIs with delete_room
3 participants