Skip to content

Commit

Permalink
Merge pull request #1268 from nyaruka/remove_old_comp_types
Browse files Browse the repository at this point in the history
Remove support for old template component types
  • Loading branch information
rowanseymour authored Jun 12, 2024
2 parents 543063b + 511e34b commit 2bbc19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flows/actions/send_msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (a *SendMsgAction) getTemplateMsg(run flows.Run, urn urns.URN, channelRef *
}

if previewContent != "" {
if comp.Type() == "header" || comp.Type() == "header/text" || comp.Type() == "body" || comp.Type() == "body/text" || comp.Type() == "footer" || comp.Type() == "footer/text" {
if comp.Type() == "header/text" || comp.Type() == "body/text" || comp.Type() == "footer/text" {
previewText = append(previewText, previewContent)
} else if strings.HasPrefix(comp.Type(), "button/") {
previewQRs = append(previewQRs, stringsx.TruncateEllipsis(previewContent, maxQuickReplyLength))
Expand Down

0 comments on commit 2bbc19f

Please sign in to comment.