Browse Source

Allow room names to start with @,$,+ characters.

pull/120/head
Simon Eisenmann 11 years ago
parent
commit
e1c4360c2f
  1. 4
      static/js/services/mediastream.js

4
static/js/services/mediastream.js

@ -228,6 +228,10 @@ define([ @@ -228,6 +228,10 @@ define([
},
changeRoom: function(id, replace) {
id = $window.encodeURIComponent(id);
// Allow room ids to start with @,$ and + without quoting.
id = id.replace(/^%40/, "@");
id = id.replace(/^%24/, "$");
id = id.replace(/^%2B/, "+");
safeApply($rootScope, function(scope) {
$location.path("/" + id);
if (replace) {

Loading…
Cancel
Save