MM-39591 - Restore custom message for guest invites (#18849)

Этот коммит содержится в:
Maria A Nunez
2021-10-26 17:17:44 -04:00
коммит произвёл GitHub
родитель 1091710592
Коммит 2ba20b5c82

Просмотреть файл

@@ -515,6 +515,11 @@ func (es *Service) SendGuestInviteEmails(team *model.Team, channels []*model.Cha
data.Props["Title"] = i18n.T("api.templates.invite_body.title", map[string]interface{}{"SenderName": senderName, "TeamDisplayName": team.DisplayName})
data.Props["SubTitle"] = i18n.T("api.templates.invite_body_guest.subTitle")
data.Props["Button"] = i18n.T("api.templates.invite_body.button")
data.Props["SenderName"] = senderName
data.Props["Message"] = ""
if message != "" {
data.Props["Message"] = message
}
data.Props["InviteFooterTitle"] = i18n.T("api.templates.invite_body_footer.title")
data.Props["InviteFooterInfo"] = i18n.T("api.templates.invite_body_footer.info")
data.Props["InviteFooterLearnMore"] = i18n.T("api.templates.invite_body_footer.learn_more")