diff options
Diffstat (limited to 'app/notification.go')
-rw-r--r-- | app/notification.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/notification.go b/app/notification.go index 5d31c2739..70f60dd42 100644 --- a/app/notification.go +++ b/app/notification.go @@ -22,6 +22,11 @@ const ( ) func (a *App) SendNotifications(post *model.Post, team *model.Team, channel *model.Channel, sender *model.User, parentPostList *model.PostList) ([]string, *model.AppError) { + // Do not send notifications in archived channels + if channel.DeleteAt > 0 { + return []string{}, nil + } + pchan := a.Srv.Store.User().GetAllProfilesInChannel(channel.Id, true) cmnchan := a.Srv.Store.Channel().GetAllChannelMembersNotifyPropsForChannel(channel.Id, true) var fchan store.StoreChannel |