From 527c14b194fadc724fe49fb6cd23f21f35b07fed Mon Sep 17 00:00:00 2001 From: JC Brand Date: Thu, 10 Sep 2020 10:27:56 +0200 Subject: [PATCH] Fixes #2133 --- src/templates/occupant.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/templates/occupant.js b/src/templates/occupant.js index a8d6f0352..ed01cb3d0 100644 --- a/src/templates/occupant.js +++ b/src/templates/occupant.js @@ -6,14 +6,15 @@ const occupant_title = (o) => { const i18n_moderator_hint = __('This user is a moderator.'); const i18n_participant_hint = __('This user can send messages in this groupchat.'); const i18n_visitor_hint = __('This user can NOT send messages in this groupchat.') + const spaced_jid = `${o.jid} ` || ''; if (o.role === "moderator") { - return `${o.jid} ${i18n_moderator_hint} ${o.hint_occupant}`; + return `${spaced_jid}${i18n_moderator_hint} ${o.hint_occupant}`; } else if (o.role === "participant") { - return `${o.jid} ${i18n_participant_hint} ${o.hint_occupant}`; + return `${spaced_jid}${i18n_participant_hint} ${o.hint_occupant}`; } else if (o.role === "visitor") { - return `${o.jid} ${i18n_visitor_hint} ${o.hint_occupant}`; + return `${spaced_jid}${i18n_visitor_hint} ${o.hint_occupant}`; } else if (!["visitor", "participant", "moderator"].includes(o.role)) { - return `${o.jid} ${o.hint_occupant}`; + return `${spaced_jid}${o.hint_occupant}`; } }