From 62b3569025347a1291229771f363be5962951f25 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 25 Oct 2017 17:51:13 +0200 Subject: [PLT-4341] add dnd command (#7694) --- app/notification.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/notification.go') diff --git a/app/notification.go b/app/notification.go index 3adf14419..84a2b610b 100644 --- a/app/notification.go +++ b/app/notification.go @@ -993,6 +993,8 @@ func DoesStatusAllowPushNotification(userNotifyProps model.StringMap, status *mo return true } else if pushStatus == model.STATUS_OFFLINE && status.Status == model.STATUS_OFFLINE { return true + } else if status.Status == model.STATUS_DND { + return false } return false -- cgit v1.2.3-1-g7c22