From 1415f21c515bfddf61556c7eafaff9ea0ea46a21 Mon Sep 17 00:00:00 2001 From: or-else Date: Mon, 12 Feb 2018 15:04:33 -0800 Subject: [PATCH] bug fix in display of online topic subscribers --- index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 27d732d6..00e895c1 100644 --- a/index.html +++ b/index.html @@ -2696,7 +2696,8 @@ } if (this.props.connected && !props.connected) { - // connection lost, do nothing + // connection lost, clear online subs + this.setState({onlineSubs: []}); return; } @@ -2717,8 +2718,9 @@ this.leave(); this.handleDescChange(topic); + var myId = this.props.myUserId; topic.subscribers(function(sub) { - if (sub.online) { + if (sub.online && sub.user != myId) { subs.push(sub); } });