discourse/app/services
Osama Sayegh 43ef44127c
UX: Send notification of type replied to topic author if they're watching the topic (#18684)
Related to aeee7ed.

Before the change in aeee7ed, notifications for direct replies to your posts and notifications for replies in watched topics looked the same in the notifications menu -- they both used the arrow icon.

We decided in aeee7ed to distinguish them by changing "watched topics" notifications to use the bell icon because it was confusing for users who watch topics to see the same icon for direct replies and "watched topics". However, that change also means that non-power/new users who receive replies to topics _they create_ will get notifications with the bell icon because technically they're watching the topic, but the arrow icon is more appropriate for this case because we use it throughout the app to indicate "replies".

This commit adds a special-case so that if a user is watching a topic AND the topic is created by them, they receive notifications with the arrow icon (type `replied`) instead of the bell icon (type `posted`) for new posts in the topic.

Internal topic: t/79051.
2022-10-25 11:53:35 +03:00
..
notifications
spam_rule DEV: Use AR enums in reviewables related code 2022-09-22 14:44:27 +02:00
anonymous_shadow_creator.rb
badge_granter.rb DEV: Refactor user_badge_granted DiscourseEvent logic (#17579) 2022-07-22 09:06:02 +08:00
base_bookmarkable.rb PERF: Only load the current user's topic_user for bookmarks list (#17873) 2022-08-17 09:40:24 +08:00
color_scheme_revisor.rb
destroy_task.rb
email_settings_exception_handler.rb
email_settings_validator.rb
email_style_updater.rb
external_upload_manager.rb
group_action_logger.rb
group_mentions_updater.rb
group_message.rb FIX: Don't delete previous messages when we're inside the sent_recently window. (#18239) 2022-09-13 12:43:24 -03:00
handle_chunk_upload.rb
hashtag_autocomplete_service.rb FEATURE: Generic hashtag autocomplete sorting (#18718) 2022-10-25 08:59:17 +10:00
heat_settings_updater.rb
inline_uploads.rb FIX: Ensure pull-hotlinked can rewrite lone oneboxes (#17354) 2022-07-06 11:46:33 +01:00
notification_emailer.rb DEV: Update more Jobs#enqueue calls to use strings (#15823) 2022-02-04 19:58:34 +00:00
post_action_notifier.rb
post_alerter.rb UX: Send notification of type replied to topic author if they're watching the topic (#18684) 2022-10-25 11:53:35 +03:00
post_bookmarkable.rb PERF: Only load the current user's topic_user for bookmarks list (#17873) 2022-08-17 09:40:24 +08:00
post_owner_changer.rb FIX: update 'posted' column on post owner change (#16367) 2022-04-04 22:42:38 +05:30
push_notification_pusher.rb FIX: fallback to default push notification icon if none exists (#16961) 2022-06-01 12:00:05 +10:00
random_topic_selector.rb FIX: add support for pipelined and multi redis commands (#16682) 2022-05-10 08:19:02 +10:00
registered_bookmarkable.rb PERF: Only load the current user's topic_user for bookmarks list (#17873) 2022-08-17 09:40:24 +08:00
search_indexer.rb Revert "FEATURE: Include participants in PN search data (#16855)" (#16904) 2022-05-25 15:08:36 +10:00
site_settings_task.rb
staff_action_logger.rb FIX: Restore trust level when leaving group (#17954) 2022-08-29 13:00:48 +03:00
themes_install_task.rb
topic_bookmarkable.rb FIX: Remove last_unread_post excerpt logic for bookmarks (#17979) 2022-08-19 09:35:25 +10:00
topic_status_updater.rb FIX: Update user stat counts when post/topic visibility changes. (#15883) 2022-02-11 09:00:58 +08:00
topic_timestamp_changer.rb
tracked_topics_updater.rb
trust_level_granter.rb
user_action_manager.rb DEV: Remove PostAction/UserAction bookmark refs (#16681) 2022-05-10 10:42:18 +10:00
user_activator.rb
user_anonymizer.rb
user_authenticator.rb
user_destroyer.rb PERF: Update all user_histories with one query in UserDestroyer (#16717) 2022-05-11 13:39:31 +01:00
user_merger.rb FIX: Prevent "integer out of range" when merging post timings (#15723) 2022-01-26 23:34:28 +01:00
user_notification_renderer.rb
user_notification_schedule_processor.rb
user_silencer.rb
user_stat_count_updater.rb DEV: Drop user_stats count column constraints (#15949) 2022-02-16 12:49:11 +11:00
user_updater.rb FEATURE: allow user to set preferred sidebar list destination (#18594) 2022-10-18 13:21:52 +11:00
username_changer.rb
username_checker_service.rb
wildcard_domain_checker.rb
wildcard_url_checker.rb
word_watcher.rb FIX: Make word watcher work with nil strings (#17830) 2022-08-08 16:34:51 -03:00