Thilo Molitor pushed to branch master at gajim / gajim

Commits:

1 changed file:

Changes:

  • src/common/connection_handlers.py
    ... ... @@ -1203,11 +1203,12 @@ class ConnectionHandlersBase:
    1203 1203
             self.name, 'request_receipt'):
    
    1204 1204
                 ctrl = obj.session.control
    
    1205 1205
                 if not ctrl:
    
    1206
    -                # Received <message> doesn't have the <thread> element?
    
    1207
    -                # search in all sessions
    
    1208
    -                for s in self.get_sessions(obj.jid):
    
    1209
    -                    if s.control:
    
    1210
    -                        ctrl = s.control
    
    1206
    +                # Received <message> doesn't have the <thread> element
    
    1207
    +                # or control is not bound to session?
    
    1208
    +                # --> search for it
    
    1209
    +                ctrl = gajim.interface.msg_win_mgr.search_control(obj.jid,
    
    1210
    +                    obj.conn.name, obj.resource)
    
    1211
    +            
    
    1211 1212
                 if ctrl:
    
    1212 1213
                     id_ = obj.receipt_received_tag.getAttr('id')
    
    1213 1214
                     if not id_: