From f8108efe35ec5b7d362cbb3890a7acdc8884b0f6 Mon Sep 17 00:00:00 2001
From: enahum <nahumhbl@gmail.com>
Date: Tue, 20 Sep 2016 13:00:21 -0300
Subject: PLT-3338 Show username on Direct message search result (#4041)

---
 webapp/components/search_results_item.jsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'webapp/components/search_results_item.jsx')

diff --git a/webapp/components/search_results_item.jsx b/webapp/components/search_results_item.jsx
index 2260f99ad..5cc0b4c54 100644
--- a/webapp/components/search_results_item.jsx
+++ b/webapp/components/search_results_item.jsx
@@ -72,7 +72,10 @@ export default class SearchResultsItem extends React.Component {
                 channelName = (
                     <FormattedMessage
                         id='search_item.direct'
-                        defaultMessage='Direct Message'
+                        defaultMessage='Direct Message (with {username})'
+                        values={{
+                            username: Utils.displayUsernameForUser(Utils.getDirectTeammate(channel.id))
+                        }}
                     />
                 );
             }
-- 
cgit v1.2.3-1-g7c22

