correctly display an invalid topic
This commit is contained in:
+6
-2
@@ -3858,10 +3858,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Topic for MessagesView selector.
|
// 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]);
|
var tp = Tinode.getTopicType(hash.path[1]);
|
||||||
if (tp) {
|
if (tp) {
|
||||||
this.setState({topicSelected: hash.path[1]});
|
this.setState({
|
||||||
|
topicSelected: hash.path[1],
|
||||||
|
topicSelectedOnline: false,
|
||||||
|
topicSelectedAcs: null
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
this.setState({topicSelected: null});
|
this.setState({topicSelected: null});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user