From 38994fc50c44a046e64fddb10f619ad8ed06bf40 Mon Sep 17 00:00:00 2001
From: Christopher Speller <crspeller@gmail.com>
Date: Thu, 27 Aug 2015 10:42:48 -0400
Subject: Temporary PM channels now use username instead of display name

---
 web/react/components/sidebar.jsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'web/react/components/sidebar.jsx')

diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index d79505e9e..8dd192893 100644
--- a/web/react/components/sidebar.jsx
+++ b/web/react/components/sidebar.jsx
@@ -64,7 +64,8 @@ function getStateFromStores() {
             var tempChannel = {};
             tempChannel.fake = true;
             tempChannel.name = channelName;
-            tempChannel.display_name = utils.getDisplayName(teammate);
+            tempChannel.display_name = teammate.username;
+            tempChannel.teammate_username = teammate.username;
             tempChannel.status = UserStore.getStatus(teammate.id);
             tempChannel.last_post_at = 0;
             tempChannel.total_msg_count = 0;
-- 
cgit v1.2.3-1-g7c22

