Thilo Molitor pushed to branch master at gajim / gajim
Commits:
-
55eaf70f
by Thilo Molitor at 2016-12-16T21:53:51+01:00
-
c48f0419
by Thilo Molitor at 2016-12-18T04:22:08+01:00
-
f15497b0
by Thilo Molitor at 2016-12-23T15:21:03+01:00
1 changed file:
Changes:
| ... | ... | @@ -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_:
|