summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-08-27 10:42:48 -0400
committerChristopher Speller <crspeller@gmail.com>2015-08-27 10:42:48 -0400
commit38994fc50c44a046e64fddb10f619ad8ed06bf40 (patch)
treeb4c433359da151e0f620327c2869cae11466d5b2 /web
parentea4beb7c4545e3ad6c7214a6a15ec66cc784f5ea (diff)
downloadchat-38994fc50c44a046e64fddb10f619ad8ed06bf40.tar.gz
chat-38994fc50c44a046e64fddb10f619ad8ed06bf40.tar.bz2
chat-38994fc50c44a046e64fddb10f619ad8ed06bf40.zip
Temporary PM channels now use username instead of display name
Diffstat (limited to 'web')
-rw-r--r--web/react/components/sidebar.jsx3
1 files changed, 2 insertions, 1 deletions
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;