diff --git a/app/main/views/conversation.py b/app/main/views/conversation.py index 78e3ee632..5542e25de 100644 --- a/app/main/views/conversation.py +++ b/app/main/views/conversation.py @@ -46,7 +46,7 @@ def get_sms_thread(service_id, user_number): 'inbound': is_inbound, 'content': SMSPreviewTemplate( { - 'content': notification.get('content') or notification['template']['content'] + 'content': notification.get('content') or notification['body'] }, downgrade_non_gsm_characters=(not is_inbound) ), diff --git a/tests/__init__.py b/tests/__init__.py index 3b8ff9a8c..8560ead2d 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -249,8 +249,8 @@ def notification_json( 'id': template['id'], 'name': template['name'], 'template_type': template['template_type'], - 'content': template['content'], }, + 'body': template['content'], 'job': job_payload, 'sent_at': sent_at, 'status': status,