From 3f3a957f40bdabb26c0f4037b1505013e2472aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Tue, 3 Jul 2018 15:34:43 -0500 Subject: [PATCH] Removes unneeded translation. (#3217) --- lang/main.json | 1 - modules/UI/UI.js | 21 +++++++-------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/lang/main.json b/lang/main.json index ac1c1918db..c9d59f8f98 100644 --- a/lang/main.json +++ b/lang/main.json @@ -234,7 +234,6 @@ "focus": "Conference focus", "focusFail": "__component__ not available - retry in __ms__ sec", "grantedTo": "Moderator rights granted to __to__!", - "grantedToUnknown": "Moderator rights granted to $t(notify.somebody)!", "muted": "You have started the conversation muted.", "mutedTitle": "You're muted!", "raisedHand": "Would like to speak.", diff --git a/modules/UI/UI.js b/modules/UI/UI.js index 42b2aa2c1c..bc3e371c42 100644 --- a/modules/UI/UI.js +++ b/modules/UI/UI.js @@ -476,20 +476,13 @@ UI.updateUserRole = user => { const displayName = user.getDisplayName(); - if (displayName) { - messageHandler.participantNotification( - displayName, - 'notify.somebody', - 'connected', - 'notify.grantedTo', - { to: UIUtil.escapeHtml(displayName) }); - } else { - messageHandler.participantNotification( - '', - 'notify.somebody', - 'connected', - 'notify.grantedToUnknown'); - } + messageHandler.participantNotification( + displayName, + 'notify.somebody', + 'connected', + 'notify.grantedTo', + { to: displayName + ? UIUtil.escapeHtml(displayName) : '$t(notify.somebody)' }); }; /**