Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(conference): ensure avatar url and email changes act on strings

Leonard Kim0451e7c9e709
diff --git a/conference.js b/conference.js
index c70914ebb9..91d7eeb4d2 100644
--- a/conference.js
+++ b/conference.js
@@ -2051,7 +2051,7 @@ export default {
* @param email {string} the new email
*/
changeLocalEmail(email = '') {
- email = email.trim();
+ email = String(email).trim();
if (email === APP.settings.getEmail()) {
return;
@@ -2075,7 +2075,7 @@ export default {
* @param url {string} the new url
*/
changeLocalAvatarUrl(url = '') {
- url = url.trim();
+ url = String(url).trim();
if (url === APP.settings.getAvatarUrl()) {
return;