diff --git a/src/common/jingle_ft.py b/src/common/jingle_ft.py index 03b66884f..3f7eae168 100644 --- a/src/common/jingle_ft.py +++ b/src/common/jingle_ft.py @@ -176,7 +176,7 @@ class JingleFileTransfer(JingleContent): except IOError: # can't open file return - h = nbxmpp.Hashes() + h = nbxmpp.Hashes2() hash_ = h.calculateHash(self.file_props.algo, file_) file_.close() # DEBUG diff --git a/src/common/jingle_session.py b/src/common/jingle_session.py index 670fc58e0..371baf56c 100644 --- a/src/common/jingle_session.py +++ b/src/common/jingle_session.py @@ -446,7 +446,7 @@ class JingleSession: hash_ = child.getTag('file').getTag(name='hash', namespace=nbxmpp.NS_HASHES_2) algo = hash_.getAttr('algo') - if algo in nbxmpp.Hashes.supported: + if algo in nbxmpp.Hashes2.supported: file_props = FilesProp.getFileProp(self.connection.name, self.sid) file_props.algo = algo diff --git a/src/gui_interface.py b/src/gui_interface.py index c2e420817..ebfc4cfe4 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -73,7 +73,7 @@ from session import ChatControlSession from common import sleepy from nbxmpp import idlequeue -from nbxmpp import Hashes +from nbxmpp import Hashes2 from common.zeroconf import connection_zeroconf from common import resolver from common import caps_cache @@ -988,7 +988,7 @@ class Interface: session = gajim.connections[account].get_jingle_session(jid=None, sid=file_props.sid) ft_win = self.instances['file_transfers'] - h = Hashes() + h = Hashes2() try: file_ = open(file_props.file_name, 'rb') except: