diff --git a/index.html b/index.html index 26c2e656..ac5d2bd5 100644 --- a/index.html +++ b/index.html @@ -574,7 +574,9 @@ dignissim a diam a hendrerit. Nulla vel est ut quam rhoncus pulvinar. In hac hab Tinode.connect().then(function() { return Tinode.loginBasic(login, password); }).then(function() { - instance.setState({sidePanel: 'contacts', loggedIn: true}); + instance.setState({loggedIn: true}); + var me = new Tinode.Topic("me"); + me.subscribe(); }).catch(function(err) { instance.setState({loginDisabled: false, errorText: err.message}); });