Dont advertise urn:xmpp:hashes:1

Fixes #9514
This commit is contained in:
Philipp Hörist 2019-02-15 15:04:50 +01:00
parent 7fe03dcb45
commit 53d6b1dc32
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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,