Don't run encodeURIComponent on Invite parameters

Seems like encoded server URLs result in an invalid Invite URL. By making this change, I was able to generate valid Invite URLs, even when the room had special characters in the password/room name. I am not sure what the original intent of this code was, or if I am missing something. I did test it in my scenario, and it worked.
This commit is contained in:
rg9400 2019-02-03 21:13:42 -06:00 committed by GitHub
parent f42d9d2a34
commit b4a5be1495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ const bootstrap = () => {
}
let query = ''
for (let key in params) {
query += encodeURIComponent(key) + '=' + encodeURIComponent(params[key]) + '&'
query += encodeURIComponent(key) + '=' + params[key] + '&'
}
fullUrl = accessIp + '/#/join?' + query
data.fullUrl = fullUrl