Skip to content

Commit

Permalink
[4.3] HELP-13212: Improve check to include attachment referral inform…
Browse files Browse the repository at this point in the history
…ation (#6476)

* HELP-13212: Improve check to include attachment referral information

* HELP-13212: Use typed getter
  • Loading branch information
harenson authored Apr 14, 2020
1 parent 03b60ee commit 2d85f11
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h3 style="margin:0;padding:0;font-family:'Open Sans',sans-serif;color:#555555;f
<td bgcolor="#ffffff" style="padding:20px;font-family:'Open Sans',sans-serif;color:#555555;">
<p style="margin:0;padding:0;font-family:'Open Sans',sans-serif;color:#555555;">You have a new voicemail from <b>{{caller_id.name_number}}</b> for your voicemail box at <b>{{voicemail.vmbox_name}} ({{voicemail.vmbox_number}})</b>.
<pre style="text-align: left;white-space: pre-line;">
{% if voicemail.file_name %}
{% if voicemail.vmbox_include_message_on_notify %}
<br><br>Please find the message audio file in the attachment.
{% endif %}
</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Hi{% if user.first_name %} {{user.first_name}}{% endif %},

You have a new voicemail from {{caller_id.name_number}} for
your voicemail box at {{voicemail.vmbox_name}} (number: {{voicemail.vmbox_number}}).
{% if voicemail.file_name %}
{% if voicemail.vmbox_include_message_on_notify %}
Please find the message audio file in the attachment.
{% endif %}
{% if voicemail.transcription %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ build_voicemail_data(DataJObj) ->
,{<<"box">>, kz_json:get_value(<<"voicemail_box">>, DataJObj)} %% backward compatibility
,{<<"vmbox_name">>, kz_json:get_value([<<"vmbox_doc">>, <<"name">>], DataJObj)}
,{<<"vmbox_number">>, kz_json:get_value([<<"vmbox_doc">>, <<"mailbox">>], DataJObj)}
,{<<"vmbox_include_message_on_notify">>
,kz_json:is_true([<<"vmbox_doc">>, <<"include_message_on_notify">>], DataJObj, 'true')
}
,{<<"msg_id">>, kz_json:get_value(<<"voicemail_id">>, DataJObj)}
,{<<"name">>, kz_json:get_value(<<"voicemail_id">>, DataJObj)} %% backward compatibility
,{<<"transcription">>, maybe_get_transcription(DataJObj)}
Expand Down

0 comments on commit 2d85f11

Please sign in to comment.