changeset 2359e1b05621 in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=2359e1b05621
description: print that we invite someone in a room when we do Drag and Drop or 
when we create a new room. Fixes #7219

diffstat:

 src/groupchat_control.py |  2 ++
 src/gui_interface.py     |  6 ++++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diffs (28 lines):

diff -r 2835c873bd69 -r 2359e1b05621 src/groupchat_control.py
--- a/src/groupchat_control.py  Mon Aug 20 15:23:42 2012 +0200
+++ b/src/groupchat_control.py  Mon Aug 20 15:46:20 2012 +0200
@@ -2132,6 +2132,8 @@
             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 -r 2835c873bd69 -r 2359e1b05621 src/gui_interface.py
--- a/src/gui_interface.py      Mon Aug 20 15:23:42 2012 +0200
+++ b/src/gui_interface.py      Mon Aug 20 15:46:20 2012 +0200
@@ -596,6 +596,12 @@
                 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] = \
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to