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

Safe spam mode doesn't work until restart #852

Open
dtonon opened this issue Sep 10, 2024 · 1 comment
Open

Safe spam mode doesn't work until restart #852

dtonon opened this issue Sep 10, 2024 · 1 comment
Labels
Bug Something isn't working

Comments

@dtonon
Copy link
Collaborator

dtonon commented Sep 10, 2024

https://njump.me/nevent1qqsqqqzpfxzhv3h65dzdw3jeqfc37epmschtvdqy5kg8rmu6hl7dgmgprfmhxue69uhhq7tjv9kkjepwve5kzar2v9nzucm0d5hszxmhwden5te0wfjkccte9emk2um5v4exucn5vvhxxmmd9uk3mxuf

The activation should be immediate.

@dtonon dtonon added the Bug Something isn't working label Sep 10, 2024
@mikedilger
Copy link
Owner

mikedilger commented Sep 10, 2024

Two things have to happen:

  1. When switching the setting, we disconnect all relays.
  2. When switching spamsafe on a relay, we disconnect that relay.

Existing logic will reconnect relays that it needs.

Ideally we could just close all spamsafe-affected subscriptions, but disconnect is easier and will cause less bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants