Skip to content

Commit

Permalink
Remove support for old template component types
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Jun 12, 2024
1 parent fdcb6f3 commit 511e34b
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 511e34b

Please sign in to comment.