diff --git a/gajim/common/app.py b/gajim/common/app.py index a021d5195..15b6f1187 100644 --- a/gajim/common/app.py +++ b/gajim/common/app.py @@ -162,7 +162,6 @@ gajim_common_features = [ nbxmpp.NS_CONFERENCE, nbxmpp.NS_CORRECT, nbxmpp.NS_EME, - nbxmpp.NS_HASHES, nbxmpp.NS_HASHES_2, nbxmpp.NS_HASHES_MD5, nbxmpp.NS_HASHES_SHA1, diff --git a/gajim/common/jingle_session.py b/gajim/common/jingle_session.py index 32d50d4a6..5f36b925b 100644 --- a/gajim/common/jingle_session.py +++ b/gajim/common/jingle_session.py @@ -445,6 +445,8 @@ class JingleSession: if child.getName() == 'checksum': hash_ = child.getTag('file').getTag(name='hash', namespace=nbxmpp.NS_HASHES_2) + if hash_ is None: + continue algo = hash_.getAttr('algo') if algo in nbxmpp.Hashes2.supported: file_props = FilesProp.getFileProp(self.connection.name,