Skip to content
Snippets Groups Projects
Commit 36ea9267 authored by Gilbert Gonzales's avatar Gilbert Gonzales
Browse files

CHUI-329: The text is now gray due to CHUI 410. The only change in this commit...

CHUI-329: The text is now gray due to CHUI 410. The only change in this commit is that parenthesis surround the nearby chat text (Nearby chat).
parent 49ad7fd4
No related branches found
No related tags found
No related merge requests found
......@@ -1175,8 +1175,18 @@ void LLIMFloaterContainer::setNearbyDistances()
void LLIMFloaterContainer::addConversationListItem(const LLUUID& uuid, bool isWidgetSelected /*= false*/)
{
bool is_nearby_chat = uuid.isNull();
std::string display_name = is_nearby_chat ? LLTrans::getString("NearbyChatTitle") : LLIMModel::instance().getName(uuid);
std::string display_name;
//Stores the display name for the conversation line item
if(is_nearby_chat)
{
//Adds parenthesis in code since these are independent of the translated string
display_name = "(" + LLTrans::getString("NearbyChatTitle") + ")";
}
else
{
display_name = LLIMModel::instance().getName(uuid);
}
// Check if the item is not already in the list, exit if it is and has the same name and uuid (nothing to do)
// Note: this happens often, when reattaching a torn off conversation for instance
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment