Show
Ignore:
Timestamp:
09/04/07 20:32:31 (15 months ago)
Author:
asterix
Message:

ask vcard to rela jid in muc if we knows it

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.11.1/src/roster_window.py

    r8707 r8709  
    30563056                self.update_status_combobox() 
    30573057 
    3058         def new_chat(self, contact, account, private_chat = False, resource = None): 
     3058        def new_private_chat(self, gc_contact, account): 
     3059                contact = gajim.contacts.contact_from_gc_contact(gc_contact) 
     3060                type_ = message_control.TYPE_PM 
     3061                fjid = gc_contact.room_jid + '/' + gc_contact.name 
     3062                mw = gajim.interface.msg_win_mgr.get_window(fjid, account) 
     3063                if not mw: 
     3064                        mw = gajim.interface.msg_win_mgr.create_window(contact, account, type_) 
     3065 
     3066                chat_control = PrivateChatControl(mw, gc_contact, contact, account) 
     3067                mw.new_tab(chat_control) 
     3068                if len(gajim.events.get_events(account, fjid)): 
     3069                        # We call this here to avoid race conditions with widget validation 
     3070                        chat_control.read_queue() 
     3071 
     3072        def new_chat(self, contact, account, resource = None): 
    30593073                # Get target window, create a control, and associate it with the window 
    3060                 if not private_chat: 
    3061                         type_ = message_control.TYPE_CHAT 
    3062                 else: 
    3063                         type_ = message_control.TYPE_PM 
     3074                type_ = message_control.TYPE_CHAT 
    30643075 
    30653076                fjid = contact.jid 
     
    30703081                        mw = gajim.interface.msg_win_mgr.create_window(contact, account, type_) 
    30713082 
    3072                 if not private_chat: 
    3073                         chat_control = ChatControl(mw, contact, account, resource) 
    3074                 else: 
    3075                         chat_control = PrivateChatControl(mw, contact, account) 
     3083                chat_control = ChatControl(mw, contact, account, resource) 
    30763084 
    30773085                mw.new_tab(chat_control)