Fixing DM channel emails (#5038)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
189a745030
Коммит
5be99e1f85
13
api/post.go
13
api/post.go
@@ -905,15 +905,18 @@ func sendNotificationEmail(c *Context, post *model.Post, user *model.User, chann
|
|||||||
for i := range teams {
|
for i := range teams {
|
||||||
if teams[i].Id == team.Id {
|
if teams[i].Id == team.Id {
|
||||||
found = true
|
found = true
|
||||||
|
team = teams[i]
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !found && len(teams) > 0 {
|
if !found {
|
||||||
team = teams[0]
|
if len(teams) > 0 {
|
||||||
} else {
|
team = teams[0]
|
||||||
// in case the user hasn't joined any teams we send them to the select_team page
|
} else {
|
||||||
team = &model.Team{Name: "select_team", DisplayName: utils.Cfg.TeamSettings.SiteName}
|
// in case the user hasn't joined any teams we send them to the select_team page
|
||||||
|
team = &model.Team{Name: "select_team", DisplayName: utils.Cfg.TeamSettings.SiteName}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user