diff options
author | Carlos Tadeu Panato Junior <ctadeu@gmail.com> | 2017-10-25 17:51:13 +0200 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-10-25 11:51:13 -0400 |
commit | 62b3569025347a1291229771f363be5962951f25 (patch) | |
tree | 187a16db01b5775a5536bd928f936114b0dde07a /app/notification.go | |
parent | f63223286295a1261c950c482701b99963fb260c (diff) | |
download | chat-62b3569025347a1291229771f363be5962951f25.tar.gz chat-62b3569025347a1291229771f363be5962951f25.tar.bz2 chat-62b3569025347a1291229771f363be5962951f25.zip |
[PLT-4341] add dnd command (#7694)
Diffstat (limited to 'app/notification.go')
-rw-r--r-- | app/notification.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |