From dce12f3f98dc26689b6ea2c8381ee6fb224b890f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Mon, 20 Aug 2012 15:46:20 +0200 Subject: [PATCH] print that we invite someone in a room when we do Drag and Drop or when we create a new room. Fixes #7219 --- src/groupchat_control.py | 2 ++ src/gui_interface.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index a7dce1a9e6..c5f6ef5872 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -2132,6 +2132,8 @@ class GroupchatControl(ChatControlBase): return contact_jid = data.decode('utf-8') gajim.connections[self.account].send_invite(self.room_jid, contact_jid) + self.print_conversation(_('%(jid)s has been invited in this room') % { + 'jid': contact_jid}, graphics=False) def handle_message_textview_mykey_press(self, widget, event_keyval, event_keymod): diff --git a/src/gui_interface.py b/src/gui_interface.py index 736ce8d600..86de234273 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -596,6 +596,12 @@ class Interface: for jid in gajim.automatic_rooms[account][obj.jid]['invities']: obj.conn.send_invite(obj.jid, jid, continue_tag=continue_tag) + gc_control = self.msg_win_mgr.get_gc_control(obj.jid, + account) + if gc_control: + gc_control.print_conversation( + _('%(jid)s has been invited in this room') % { + 'jid': jid}, graphics=False) del gajim.automatic_rooms[account][obj.jid] elif obj.jid not in self.instances[account]['gc_config']: self.instances[account]['gc_config'][obj.jid] = \ -- GitLab