From c9c6bf1cefbabc5dcec5cf929e12d79a000be4a1 Mon Sep 17 00:00:00 2001 From: or-else Date: Thu, 26 Apr 2018 21:45:29 -0700 Subject: [PATCH] correctly display an invalid topic --- index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index abb4f0da..498cb054 100644 --- a/index.html +++ b/index.html @@ -3858,10 +3858,14 @@ } } // Topic for MessagesView selector. - if (hash.path.length > 1) { + if (hash.path.length > 1 && hash.path[1] != this.state.topicSelected) { var tp = Tinode.getTopicType(hash.path[1]); if (tp) { - this.setState({topicSelected: hash.path[1]}); + this.setState({ + topicSelected: hash.path[1], + topicSelectedOnline: false, + topicSelectedAcs: null + }); } else { this.setState({topicSelected: null}); }