merging changes
This commit is contained in:
+6
-2
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user