Changeset 9636

Show
Ignore:
Timestamp:
05/14/08 02:37:06 (2 months ago)
Author:
bct
Message:

fix multipopup when receiving several unthreaded messages

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/session.py

    r9635 r9636  
    5656        def received(self, full_jid_with_resource, msgtxt, tim, encrypted, subject, msg): 
    5757                msg_type = msg.getType() 
     58 
     59                if not msg_type: 
     60                        msg_type = 'normal' 
     61 
    5862                msg_id = None 
    5963 
     
    114118 
    115119                jid_of_control = full_jid_with_resource 
     120 
     121                highest_contact = gajim.contacts.get_contact_with_highest_priority( 
     122                        self.conn.name, jid) 
     123 
     124                if not pm: 
     125                        if not highest_contact or not highest_contact.resource or \ 
     126                        resource == highest_contact.resource or highest_contact.show == 'offline': 
     127                                jid_of_control = jid 
    116128 
    117129                # Handle chat states