# Moderator Inbox Notifications

**URL:** https://meta.discourse.org/t/moderator-inbox-notifications/45754
**Category:** Support
**Created:** [June 16, 2016, 12:28pm UTC](https://meta.discourse.org/t/moderator-inbox-notifications/45754 "2016-06-16T12:28:49Z")
**Posts on this page:** 6
**Page:** 2

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [June 18, 2016, 11:30am UTC](https://meta.discourse.org/t/moderator-inbox-notifications/45754/21 "2016-06-18T11:30:52Z")

</div>

> [@TechnoBear](#):
>
> Moderator inbox was/is set to “tracking”

Oh, a Contrarian now are we? 😉  
So much for the User Watch taking precedence over Group Track hypothesis,  
EDIT  
I’ve just discovered it’s group\_users.notification\_level, hypothesis is incorrect.

> [@TechnoBear](#):
>
> The inconsistencies here are very confusing

I found another Watching issue and I’ve been digging around.

I’m guessing it has to do with the ordering of what gets returned - somewhere. eg. in

widgets/notification-item.js.es6

```plaintext
    if (topicId) {
      return Discourse.Utilities.postUrl(attrs.slug, topicId, attrs.post_number);
    }

    if (attrs.notification_type === INVITED_TYPE) {
      return Discourse.getURL('/users/' + data.display_username);
    }

    if (data.group_id) {
      return Discourse.getURL('/users/' + data.username + '/messages/group/' + data.group_name);
    }

```

i.e. if there are both a group\_id and a topicId, it’s the topicId that gets returned.

---

<div class="post-metadata">

### Author: ![frabrunelle](https://avatars.discourse-cdn.com/v4/letter/f/7ba0ec/32.png) [@frabrunelle](https://meta.discourse.org/u/frabrunelle)
#### Post date: [June 23, 2016, 1:10pm UTC](https://meta.discourse.org/t/moderator-inbox-notifications/45754/22 "2016-06-23T13:10:03Z")

</div>

> [@cpradio](#):
>
> So why is it possibily a bug? The descriptions for Watching and Tracking both include “and a count of new replies will be shown”, Tracking seems to do this (assuming the group message is that count), watching does not.

Yes I think it’s a bug. Here is the description for Watching:

> You will be notified of every new post in every message, and a count of new replies will be shown.

I prefer to set my notification level to Watching and I would expect to see the `group_message_summary` notification when I do that (e.g. “6 messages in your moderators inbox”).

Here is the code that decides who receives a group summary notification:

> <https://github.com/discourse/discourse/blob/8f4bc2228fd5def7a4190222b0ae993a384791d9/app/services/post_alerter.rb#L93-L101>

It’s the `notify_group_summary` function that sends `group_message_summary` notifications. So currently, only group members with a notification level set to Tracking will receive it. I think we could modify the code like this:

```ruby
if notification_level == TopicUser.notification_levels[:watching]
  create_notification(user, Notification.types[:private_message], post)
  notify_group_summary(user, post)
elsif notification_level == TopicUser.notification_levels[:tracking]
  if notified.include?(user)
    create_notification(user, Notification.types[:private_message], post)
  else
    notify_group_summary(user, post)
  end
end

```

Would that be the best way to fix this bug? Let me know if you have other ideas 🙂

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 3, 2019, 8:44pm UTC](https://meta.discourse.org/t/moderator-inbox-notifications/45754/23 "2019-02-03T20:44:36Z")

</div>



---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 3, 2019, 11:49pm UTC](https://meta.discourse.org/t/moderator-inbox-notifications/45754/24 "2019-02-03T23:49:58Z")

</div>

hmmm … is there anything more to do here.

> [@cpradio](#):
>
> My tracking state is “Watching” on the Moderator inbox. So I should be getting notifications.

Is the root problem here that we did not reset tracking state on all old messages (since the new watching setting only applies to new messages) ?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [February 3, 2019, 11:51pm UTC](https://meta.discourse.org/t/moderator-inbox-notifications/45754/25 "2019-02-03T23:51:28Z")

</div>

Not from I, it seems to be working as expected again for me, but things have also changed on my end, as I’m now the admin (but I feel like it was working better before that happened)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 3, 2019, 11:51pm UTC](https://meta.discourse.org/t/moderator-inbox-notifications/45754/26 "2019-02-03T23:51:45Z")

</div>



[Previous page](https://meta.discourse.org/t/moderator-inbox-notifications/45754.md?page=1)
