print that we invite someone in a room when we do Drag and Drop or when we create a new room. Fixes #7219

This commit is contained in:
Yann Leboulanger 2012-08-20 15:46:20 +02:00
parent afb77ff52f
commit dce12f3f98
2 changed files with 8 additions and 0 deletions

View File

@ -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):

View File

@ -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] = \