summaryrefslogtreecommitdiffstats
path: root/webapp/utils
diff options
context:
space:
mode:
authorDavid Lu <david.lu97@outlook.com>2016-10-04 08:49:57 -0400
committerChristopher Speller <crspeller@gmail.com>2016-10-04 08:49:57 -0400
commit38c34017a3760e62fb08025c76fd3c7a25006e58 (patch)
tree2805ff99c7c6d1ff6b69de002c2f4e53fc469528 /webapp/utils
parent2dd666cb8a16de3a7515e7dae5fe78c9b28b627f (diff)
downloadchat-38c34017a3760e62fb08025c76fd3c7a25006e58.tar.gz
chat-38c34017a3760e62fb08025c76fd3c7a25006e58.tar.bz2
chat-38c34017a3760e62fb08025c76fd3c7a25006e58.zip
PLT-4200/3708 Fixed outside team DM switching, allowed switching to uncreated DMs (#4111)
* Fixed outside team DM switching, allowed switching to uncreated DMs * Update channel_switch_modal.jsx
Diffstat (limited to 'webapp/utils')
-rw-r--r--webapp/utils/utils.jsx7
1 files changed, 0 insertions, 7 deletions
diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index 5a47b0a63..73765495c 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -1032,13 +1032,6 @@ export function getDirectChannelName(id, otherId) {
return handle;
}
-export function getDirectChannelNameByUsername(username, otherUsername) {
- const id = UserStore.getProfileByUsername(username).id;
- const otherId = UserStore.getProfileByUsername(otherUsername).id;
-
- return getDirectChannelName(id, otherId);
-}
-
// Used to get the id of the other user from a DM channel
export function getUserIdFromChannelName(channel) {
var ids = channel.name.split('__');