From 558f8a322feba9fa22509a58a01411225c81b469 Mon Sep 17 00:00:00 2001
From: Reed Garmsen <rgarmsen2295@gmail.com>
Date: Mon, 28 Sep 2015 16:31:18 -0700
Subject: Removed unused title update code

---
 web/react/utils/utils.jsx | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

(limited to 'web/react/utils/utils.jsx')

diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 61dcae6d8..fec13abe9 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -790,16 +790,12 @@ export function isValidUsername(name) {
     return error;
 }
 
-export function updateTabTitle(name) {
-    document.title = name + ' ' + document.title.substring(document.title.lastIndexOf('-'));
-}
-
 export function updateAddressBar(channelName) {
     var teamURL = window.location.href.split('/channels')[0];
     history.replaceState('data', '', teamURL + '/channels/' + channelName);
 }
 
-export function switchChannel(channel, teammateName) {
+export function switchChannel(channel) {
     AppDispatcher.handleViewAction({
         type: ActionTypes.CLICK_CHANNEL,
         name: channel.name,
@@ -808,12 +804,6 @@ export function switchChannel(channel, teammateName) {
 
     updateAddressBar(channel.name);
 
-    if (channel.type === 'D' && teammateName) {
-        updateTabTitle(teammateName);
-    } else {
-        updateTabTitle(channel.display_name);
-    }
-
     AsyncClient.getChannels(true, true, true);
     AsyncClient.getChannelExtraInfo(true);
     AsyncClient.getPosts(channel.id);
-- 
cgit v1.2.3-1-g7c22

