summaryrefslogtreecommitdiffstats
path: root/web/react/components/sidebar.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-11-03 15:11:16 -0500
committerJoramWilander <jwawilander@gmail.com>2015-11-03 15:11:16 -0500
commita26145ef91197ba374d525c947984ae672cbd94d (patch)
tree82fcbf8af647be2e31afadb9c595a5a5943959ab /web/react/components/sidebar.jsx
parentfb5b57836ece6da2d0136802ca0d08346638b9e2 (diff)
downloadchat-a26145ef91197ba374d525c947984ae672cbd94d.tar.gz
chat-a26145ef91197ba374d525c947984ae672cbd94d.tar.bz2
chat-a26145ef91197ba374d525c947984ae672cbd94d.zip
Minor changes to statuses client code
Diffstat (limited to 'web/react/components/sidebar.jsx')
-rw-r--r--web/react/components/sidebar.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx
index e47ba6edf..aab9919a4 100644
--- a/web/react/components/sidebar.jsx
+++ b/web/react/components/sidebar.jsx
@@ -113,6 +113,9 @@ export default class Sidebar extends React.Component {
for (var i = 0; i < directChannels.length; i++) {
const dm = directChannels[i];
const teammate = Utils.getDirectTeammate(dm.id);
+ if (!teammate) {
+ continue;
+ }
const member = members[dm.id];
const msgCount = dm.total_msg_count - member.msg_count;