use contact with highest priority when requesting file
This commit is contained in:
parent
db7bba378a
commit
6120c81a78
|
@ -248,14 +248,17 @@ class FileTransfersWindow:
|
||||||
self.tree.get_selection().unselect_all()
|
self.tree.get_selection().unselect_all()
|
||||||
|
|
||||||
def show_hash_error(self, jid, file_props, account):
|
def show_hash_error(self, jid, file_props, account):
|
||||||
|
|
||||||
def on_yes(dummy):
|
def on_yes(dummy):
|
||||||
# Request the file to the sender
|
# 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,
|
file_props,
|
||||||
True)
|
True)
|
||||||
file_props.sid = sid
|
file_props.sid = sid
|
||||||
|
|
||||||
|
|
||||||
if file_props.type_ == 'r':
|
if file_props.type_ == 'r':
|
||||||
file_name = os.path.basename(file_props.file_name)
|
file_name = os.path.basename(file_props.file_name)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue