diff --git a/www/js/scene.js b/www/js/scene.js index 36834d2..0a71cba 100644 --- a/www/js/scene.js +++ b/www/js/scene.js @@ -1220,7 +1220,10 @@ const SCENES = { callback = callback.bind({handle: msg.data.users[r].handle}); buttons.push(UI.button(LANG("challenge"), callback)); - let handle = UI.text(msg.data.users[r].handle); + let callback_profile_dawn = function() { SCENE.load(SCENES.Profile, { handle: this.handle }); } + callback_profile_dawn = callback_profile_dawn.bind({ handle: msg.data.users[r].handle }); + let handle = UI.link(msg.data.users[r].handle, callback_profile_dawn); + if(!msg.data.users[r].is_online) { handle = UI.span([handle], "text-system"); }