Do not disturb mode

Ha! This is interesting!

I used this for the first time today and expected the notification counter to show my pending messages when it expired. While the notifications were showing as new in the drop-down menu, the counter did not. Is that expected behavior?

3 Likes

I see what you mean; that count for non-PM notifications is cleared when you click on your avatar. When you leave DND manually, you have to click your avatar so it must be clearing the count at that point. I’ll see if I can prevent that from happening :+1:

Edit: To leave DND mode you do see those notifications though, because the first pane that opens is the notifications pane… leaving the count there after you have opened the notifications pane might be more inconsistent than the current behavior.

3 Likes

Can anyone confirm what is supposed to happen if I choose None when configuring the notification schedule? I would guess that DND mode would be active on those days but I’d like to be sure :slight_smile:

4 Likes

Yes, DND will be active for the entirety of the day if “none” is selected.

8 Likes

Thank you for confirming that! :smiley:

4 Likes

We had the same issue. This is the CSS we added to style the moon gray (assuming default color scheme):

/* Less distracting do-not-disturb */

.do-not-disturb-background .d-icon.d-icon-moon {
    color: var(--primary-high-or-secondary-low) !important;
}
.do-not-disturb-background {
    background-color: var(--primary-med-or-secondary-high) !important;
}
4 Likes

Quick question: when do not disturb is enabled, I still get the email if a new topic is posted. I am the admin, mailing list is enabled.

I assume DND does not affect the emails?

1 Like

You shouldn’t get emails, that sounds like a bug. I’ll look into it!

3 Likes

Thanks. I am on 2.7.0.beta4. See my settings

I got an email this morning at 9.35 am, (GMT+1). The server has GTM/UTC

4 Likes

Are you using mailing list mode? what kind of email did you get?

5 Likes

If anyone else is also struggling with the language here, I just modified our js.user.notification_schedule.none to a value of No Notifications. This is accessible at https://discourse.example.org/admin/customize/site_texts/js.user.notification_schedule.none?locale=en

7 Likes

Mailing list mode enabled

I got the email about a new topic been posted by a new user t0

4 Likes

I see, yes, mailing list mode support for do not disturb is absolutely on our roadmap, but unfortunately not something we can work on for a few more months.

8 Likes

Is it possible to set a default notification schedule for new users joining the site? For example, can we set as a default that notifications are only sent during office hours, and allow users to relax that if they really want to?

2 Likes

There is no way to configure that right now, and I don’t think it’s on the roadmap either. We have talked about having a richer experience for new users, with more prompts to learn about features such as this.

4 Likes

It would be a neat feature. One reason we are transitioning to discourse is to improve work life balance, so would be nice to set as a default for staff.

5 Likes

At the risk of going off topic briefly: Out of interest what platform are you transitioning from? (I did look at your Topic history briefly to check if you’d already stated it)

4 Likes

You should be able to achieve this with some external scripting; I’d do it by creating a webhook that’s called upon user creation, and then using a service like Integomat or Zapier to update the new user’s preferences.

Here are some relevant resources to get you started:

6 Likes

Email mostly :slight_smile:

We also use moodle for student facing info, but the idea is to use discourse to capture and document responses to queries as well as creating a community.

2 Likes