Hi <%= @contact.name %>,
You have new messages on your conversation.
<% @messages.each do |message| %>
<%= message.incoming? ? 'You' : message.sender&.available_name || message.sender&.name %>
|
<% if message.content %>
<%= message.content %>
<% end %>
<% if message.attachments %>
<% message.attachments.each do |attachment| %>
Attachment [Click here to view]
<% end %>
<% end %>
|
<% end %>