use contact with highest priority when requesting file

This commit is contained in:
Jefry Lagrange 2012-08-23 22:42:59 -04:00
parent db7bba378a
commit 6120c81a78
1 changed files with 5 additions and 2 deletions

View File

@ -248,14 +248,17 @@ class FileTransfersWindow:
self.tree.get_selection().unselect_all()
def show_hash_error(self, jid, file_props, account):
def on_yes(dummy):
# Request the file to the sender
sid = gajim.connections[account].start_file_transfer(jid,
contact = gajim.contacts.get_contact_with_highest_priority(account,
jid)
fjid = contact.get_full_jid()
sid = gajim.connections[account].start_file_transfer(fjid,
file_props,
True)
file_props.sid = sid
if file_props.type_ == 'r':
file_name = os.path.basename(file_props.file_name)
else: