Skip to content

fix: use thread subscription set endpoint #410

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

Merged
merged 1 commit into from
May 26, 2020

Conversation

codebytere
Copy link
Collaborator

@codebytere codebytere commented May 22, 2020

As I used the new unsubscribe feature, I discovered an annoying little idiosyncrasy - the set thread subscription endpoint encompasses more thorough functionality than the delete thread subscription endpoint.

Essentially - both endpoints can mute all future notifications for a conversation until you comment on the thread or get an @mention. However, the delete endpoint includes this caveat:

If you are watching the repository of the thread, you will still receive notifications.

Which sort of nerfs a lot of the reasons one would unsubscribe from a notification in the first place. To unsubscribe regardless of watch status, one should actually hit the set thread subscription endpoint with a PUT call and pass ignore: true in the call body, which is what this PR does.

cc @manosim

@manosim
Copy link
Member

manosim commented May 26, 2020

Great catch @codebytere - thank you for explaining and fixing it too 🎉

@manosim manosim merged commit a01e140 into gitify-app:master May 26, 2020
@codebytere codebytere deleted the fix-subscription-ignore branch May 26, 2020 20:25
@setchy setchy added the bug Something isn't working label Mar 27, 2024
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

Successfully merging this pull request may close these issues.

3 participants