diff --git a/api.js b/api.js index 8e89c6c1..8726b0fd 100644 --- a/api.js +++ b/api.js @@ -366,6 +366,20 @@ function handleProfileChange(params, req, res) { success: result, error: result ? "" : "Internal error. Contact an administrator" }); + + for(var n in Server.channels) { + var chan = Server.channels[n]; + for(var i = 0; i < chan.users.length; i++) { + if(chan.users[i].name.toLowerCase() == name) { + chan.users[i].profile = { + image: img, + text: text + }; + chan.broadcastUserUpdate(chan.users[i]); + break; + } + } + } } function handleEmailChange(params, req, res) { diff --git a/package.json b/package.json index 7a0d6dec..838002ad 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "1.9.2", + "version": "1.9.3", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/www/account.html b/www/account.html index 05fc10e3..d3f865d8 100644 --- a/www/account.html +++ b/www/account.html @@ -26,8 +26,9 @@ CyTube
@@ -48,6 +49,9 @@
  • Change Email
  • +
    +

    Select an action from the sidebar

    +