Do Not Disturb and "/dnd" command

Description

Command

  1. /dnd

  • Posts System message: “Do Not Disturb is enabled. You will not receive desktop or mobile push notifications until Do Not Disturb is turned off.”

  • If DND is already on, using /dnd again will turn it off and post the system message: "Do Not Disturb is disabled."

  1. /dnd off

  • Turns off DND and sets the status to online

  • System message: "Do Not Disturb is disabled."

  1. “/online”, “/away”, “/offline”

  • Disables DND and sets the status accordingly

  • Post the corresponding system message.

UI
Enable via Status dropdown:

Update status icons (SVG icons attached):

Functionality
When Do Not Disturb mode is on,
1. Desktop and push notifications are not sent.
2. Unread channels in the left-hand-side still bolded and show mention jewels as normal.

When Do Not Disturb mode is off,
1. Desktop and push notifications are sent as normal (per Account Preferences > Notifications and channel notification preferences)

QA Test Steps

None

Mana

None

Assignee

Lindsay Brock

QA Assignee

None

Reporter

Eric Sethna

Fix versions

None

Mattermost Team

None

Sprint

None

QA Testing Areas

None

GitHub Issue

None

Components

None
Configure