Skip to content

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

Removes unneeded translation. (#3217)

Дамян Минков3f3a957f40bd
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)' });
};
/**