ICU-682 Stopped sending out of channel mention warnings for system messages (#8426)
Этот коммит содержится в:
коммит произвёл
Derrick Anderson
родитель
3922b3ac8c
Коммит
22f2245a26
@@ -89,7 +89,7 @@ func (a *App) SendNotifications(post *model.Post, team *model.Team, channel *mod
|
|||||||
delete(mentionedUserIds, post.UserId)
|
delete(mentionedUserIds, post.UserId)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(m.OtherPotentialMentions) > 0 {
|
if len(m.OtherPotentialMentions) > 0 && !post.IsSystemMessage() {
|
||||||
if result := <-a.Srv.Store.User().GetProfilesByUsernames(m.OtherPotentialMentions, team.Id); result.Err == nil {
|
if result := <-a.Srv.Store.User().GetProfilesByUsernames(m.OtherPotentialMentions, team.Id); result.Err == nil {
|
||||||
outOfChannelMentions := result.Data.([]*model.User)
|
outOfChannelMentions := result.Data.([]*model.User)
|
||||||
if channel.Type != model.CHANNEL_GROUP {
|
if channel.Type != model.CHANNEL_GROUP {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user