From afb77ff52f3a33942d5971e4da8bde57b4d804d7 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Mon, 20 Aug 2012 15:23:42 +0200
Subject: [PATCH] show in groupchat when we invite someone. Fixes #7219

---
 src/roster_window.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/roster_window.py b/src/roster_window.py
index 280ec3db6f..7bf6d58aee 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -3376,6 +3376,12 @@ class RosterWindow:
             if resource: # we MUST have one contact only in list_
                 contact_jid += '/' + resource
             gajim.connections[room_account].send_invite(room_jid, contact_jid)
+            gc_control = gajim.interface.msg_win_mgr.get_gc_control(room_jid,
+                room_account)
+            if gc_control:
+                gc_control.print_conversation(
+                    _('%(jid)s has been invited in this room') % {
+                    'jid': contact_jid}, graphics=False)
 
     def on_all_groupchat_maximized(self, widget, group_list):
         for (contact, account) in group_list:
-- 
GitLab