Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
25799115 by wurstsalat at 2022-03-02T23:17:05+01:00
Fix processing item-not-found Iq with file transfers
Fixes #10677
- - - - -
1 changed file:
- gajim/common/modules/iq.py
Changes:
=====================================
gajim/common/modules/iq.py
=====================================
@@ -60,17 +60,18 @@ def _iq_error_received(self, _con, _stanza, properties):
raise nbxmpp.NodeProcessed
if properties.error.condition == 'item-not-found':
- sid = self._get_sid(properties.id)
- file_props = FilesProp.getFileProp(self._account, sid)
- if file_props:
- app.ged.raise_event(
- FileSendError(account=self._account,
- jid=str(properties.jid),
- file_props=file_props,
- error_msg=''))
- self._con.get_module('Bytestream').disconnect_transfer(
- file_props)
- raise nbxmpp.NodeProcessed
+ if not properties.is_pubsub:
+ sid = self._get_sid(properties.id)
+ file_props = FilesProp.getFileProp(self._account, sid)
+ if file_props:
+ app.ged.raise_event(
+ FileSendError(account=self._account,
+ jid=str(properties.jid),
+ file_props=file_props,
+ error_msg=''))
+ self._con.get_module('Bytestream').disconnect_transfer(
+ file_props)
+ raise nbxmpp.NodeProcessed
app.ged.raise_event(
IqErrorReceived(account=self._account,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/257991159c4b25a15afc975d3a4c62877a4e7b3e
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/257991159c4b25a15afc975d3a4c62877a4e7b3e
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits