add file_props structure to socks5queue

This commit is contained in:
Zhenchao Li 2010-07-01 13:25:33 +08:00
parent b85e7849e8
commit 2b745570ec
2 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,6 @@ class JingleFileTransfer(JingleContent):
self.transport.set_file_props(self.file_props) self.transport.set_file_props(self.file_props)
log.info("FT request: %s" % file_props) log.info("FT request: %s" % file_props)
#TODO
#add file transfer to queue
self.session.connection.dispatch('FILE_REQUEST', (jid, file_props)) self.session.connection.dispatch('FILE_REQUEST', (jid, file_props))

View File

@ -138,6 +138,8 @@ class ConnectionBytestream:
jid = gajim.get_jid_without_resource(file_props['sender']) jid = gajim.get_jid_without_resource(file_props['sender'])
resource = gajim.get_resource_from_jid(file_props['sender']) resource = gajim.get_resource_from_jid(file_props['sender'])
gajim.socks5queue.add_file_props(session.ourjid, file_props)
if not session.accepted: if not session.accepted:
session.approve_session() session.approve_session()
session.approve_content('file') session.approve_content('file')