diff --git a/index.html b/index.html index b9fe6ed2..e8e611c5 100644 --- a/index.html +++ b/index.html @@ -316,9 +316,29 @@ return { tabSelected: "p2p", fn: '', // full/formatted name + search: null, // search string imageDataUrl: null }; }, + componentWillMount: function() { + var fnd = Tinode.getFndTopic(); + fnd.onSubsUpdated = this.fndSubsUpdated; + fnd.subscribe() + .then(function() { + fnd.setMeta({desc: {private: ["tel:17025550005"]}}); + }) + .then(function() { + fnd.getMeta({sub: {}}); + }); + }, + componentWillUnmount: function() { + var fnd = Tinode.getFndTopic(); + fnd.onSubsUpdated = undefined; + }, + fndSubsUpdated: function(keys) { + console.log(keys); + //this.forceUpdate(); + }, handleTabClick: function(e) { e.preventDefault(); this.setState({tabSelected: e.currentTarget.dataset.id}); @@ -350,7 +370,7 @@ {this.state.tabSelected === "grp" ? -