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

feat: add option to mute hashtag #261

Merged
merged 4 commits into from
Sep 25, 2023

Conversation

FineFindus
Copy link

Closes #260 by adding the option to mute (create a filter) the hashtag.
This is marked as a draft because there are still some open questions, namely how the UI should handle hashtags that are already muted:

  • Do nothing
  • Hide the mute option
  • Show an unmute option

In the last two cases, the app has to query and iterate through the filters, as there is no native API to check if a hashtag is muted.

moshidon_mute_hashtag.mp4

@LucasGGamerM
Copy link
Owner

I think the way tusky does it is really really great. They put an icon to mute the Hashtag after the follow button (I think putting it before the follow button is best) and they also allow for unmuting hashtags directly from the hashtag view

@FineFindus FineFindus marked this pull request as ready for review September 25, 2023 18:25
@FineFindus
Copy link
Author

Muting/Unmuting a hashtag now shows a confirmation dialog. When muting a hashtag, the filter is created in the background with the hashtag as the title.
The title is for checking if a hashtag is already muted, if so the mute button switches to an unmute button and the filter is deleted.

@LucasGGamerM
Copy link
Owner

This is indeed what I had planning for this. I will review it soon

@LucasGGamerM LucasGGamerM merged commit e144d0a into LucasGGamerM:master Sep 25, 2023
1 check passed
@FineFindus FineFindus deleted the feat/mute-hashtag branch September 25, 2023 18:45
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.

Option to create a filter for a hashtag after long pressing it or something else
2 participants