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

Send notifications only to subscribed users #8

Merged
merged 1 commit into from Sep 3, 2021

Conversation

MihirSachdeva
Copy link
Member

No description provided.

@MihirSachdeva MihirSachdeva added the bug Something isn't working label Sep 1, 2021
@@ -86,7 +86,8 @@ def perform_create(self, serializer):
template = f'{request_product.name} was requested',
category = request_product.category,
has_custom_users_target = True,
persons = list(persons_to_be_notified)
persons = list(persons_to_be_notified),
send_only_to_subscribed_users = True
Copy link
Member

Choose a reason for hiding this comment

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

I don't think send_only_to_subscribed_users is needed here.
Only those who have added the product earlier will be informed.
@MihirSachdeva

Copy link
Member Author

Choose a reason for hiding this comment

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

Not using send_only_to_subscribed_users is causing this issue: A user who has requested for/added for sale an item of a particular category is not able to unsubscribe from notifications of that category.

A user should be able to manage his notification subscriptions through the notification settings.

@radhika1601 radhika1601 merged commit d05ad29 into master Sep 3, 2021
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.

None yet

3 participants