merging changes

This commit is contained in:
Gene S
2016-09-09 18:14:52 -07:00
parent 1372a68ecf
commit 3f13c56fb9
+6 -2
View File
@@ -764,7 +764,11 @@
var fnd = Tinode.getFndTopic(); var fnd = Tinode.getFndTopic();
fnd.onSubsUpdated = this.fndSubsUpdated; fnd.onSubsUpdated = this.fndSubsUpdated;
fnd.onMetaDesc = this.fndMetaDesc; fnd.onMetaDesc = this.fndMetaDesc;
fnd.subscribe({get: {sub: {}, desc: {}}}); if (fnd.isSubscribed()) {
this.setState({searchQuery: fnd.private.toString()});
} else {
fnd.subscribe({get: {sub: {}, desc: {}}});
}
}, },
componentWillUnmount: function() { componentWillUnmount: function() {
var fnd = Tinode.getFndTopic(); var fnd = Tinode.getFndTopic();
@@ -875,7 +879,7 @@
NewTopicView.SearchContacts = React.createClass({ NewTopicView.SearchContacts = React.createClass({
getInitialState: function() { getInitialState: function() {
return { return {
search: '' search: this.props.searchQuery
}; };
}, },
componentWillReceiveProps: function(nextProps) { componentWillReceiveProps: function(nextProps) {