diff --git a/index.html b/index.html index ac878b96..cc68e881 100644 --- a/index.html +++ b/index.html @@ -1353,7 +1353,8 @@ fullName: undefined, avatar: null, login: undefined, - password: undefined + password: undefined, + tags: [] }; }, componentWillMount: function() { @@ -1364,12 +1365,13 @@ avatar: makeImageUrl(me.public ? me.public.photo : null), address: Tinode.getCurrentUserID(), auth: defacs.auth, - anon: defacs.anon + anon: defacs.anon, + tags: me.tags() }); }, componentWillUnmount: function() { - var me = Tinode.getMeTopic(); + // Not needed? }, handleFullNameUpdate: function(fn) { @@ -1386,6 +1388,16 @@ }, render: function() { + var tags = []; + this.state.tags.map(function(tag) { + if (tags.length > 0) { + tags.push(" "); + } + tags.push({tag}); + }); + if (tags.length == 0) { + tags = none; + } return (