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

Since command: adding the ability to mute #272

Merged
merged 5 commits into from
May 10, 2022
Merged

Since command: adding the ability to mute #272

merged 5 commits into from
May 10, 2022

Conversation

Yoric
Copy link
Contributor

@Yoric Yoric commented Apr 5, 2022

This should help with some attacks.

@Yoric Yoric requested a review from Gnuxie April 5, 2022 14:17
src/commands/SinceCommand.ts Outdated Show resolved Hide resolved
src/commands/SinceCommand.ts Show resolved Hide resolved
src/commands/SinceCommand.ts Outdated Show resolved Hide resolved
src/commands/SinceCommand.ts Outdated Show resolved Hide resolved
@Gnuxie
Copy link
Contributor

Gnuxie commented Apr 6, 2022

Could you also link to all of the issues that have requested or discussed muting in the PR (even if this PR is not addressing all of their concerns)? it'll help us figure out whether we're doing the right thing

text: text_

// Store list of affected users, in case we need it later.
/* no need to await */ mjolnir.client.sendStateEvent(targetRoomId, "org.matrix.mjolnir.since.mute", "", results);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we are reusing joins to unmute users the same way they were muted, do we need the mute/unmute state events anymore? When I suggested this I was thinking unmute would use this state event when removing the power levels too, but that might not make sense now

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 think that we can avoid it for now and add the state event only later, if we realize we need it.

test/integration/roomMembersTest.ts Show resolved Hide resolved
@Yoric Yoric merged commit 74d8caa into main May 10, 2022
@Yoric Yoric deleted the yoric/since-2 branch May 10, 2022 15:19
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.

None yet

2 participants