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:
Pranav Raj S
2020-08-01 18:30:47 +05:30
committed by GitHub
parent 1dd3573c39
commit 6d4cfcceba
7 changed files with 11 additions and 13 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>