Chore: Update the usage of available_name instead of name (#1110)
Update the usage of available_name instead of the name
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<p>Hi <%= @agent.name %>,</p>
|
||||
<p>Hi <%= @agent.available_name %>,</p>
|
||||
|
||||
<p>Time to save the world. A new conversation has been assigned to you</p>
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<p>Hi <%= @agent.name %>,</p>
|
||||
<p>Hi <%= @agent.available_name %>,</p>
|
||||
|
||||
<p>Time to save the world. A new conversation has been created in <%= @conversation.inbox.name %></p>
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<% @messages.each do |message| %>
|
||||
<tr>
|
||||
<td>
|
||||
<b><%= message.incoming? ? 'You' : message.sender.available_name %></b>
|
||||
<b><%= message.incoming? ? 'You' : message.sender&.available_name || message.sender&.name %></b>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
Reference in New Issue
Block a user