Skip to content
Snippets Groups Projects
Commit 53d6b1dc authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Dont advertise urn:xmpp:hashes:1

Fixes #9514
parent 7fe03dcb
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment