From e914c3e84be8564508dee27fdf975a712d4553f1 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 12 Sep 2013 17:41:33 +0200
Subject: [PATCH] add 2 more direction mark :/. Fixes #7284

---
 src/dialogs.py           | 3 ++-
 src/groupchat_control.py | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/dialogs.py b/src/dialogs.py
index 2fa975e9ca..ecfc7815e2 100644
--- a/src/dialogs.py
+++ b/src/dialogs.py
@@ -4592,7 +4592,8 @@ class InvitationReceivedDialog:
                 % {'room_jid': room_jid}
         contact = gajim.contacts.get_first_contact_from_jid(account, jid)
         contact_text = contact and contact.name or jid
-        sectext = sectext.replace('$Contact', contact_text)
+        sectext = i18n.direction_mark + sectext.replace('$Contact',
+            contact_text)
 
         if comment: # only if not None and not ''
             comment = gobject.markup_escape_text(comment)
diff --git a/src/groupchat_control.py b/src/groupchat_control.py
index 2cf6aa1cd1..cbd3936806 100644
--- a/src/groupchat_control.py
+++ b/src/groupchat_control.py
@@ -1547,7 +1547,7 @@ class GroupchatControl(ChatControlBase):
 
         newly_created = False
         nick = i18n.direction_mark + obj.nick
-        nick_jid = nick
+        nick_jid = nick + i18n.direction_mark
 
         # Set to true if role or affiliation have changed
         right_changed = False
-- 
GitLab