component (file sharing): fix retrieving owner from jid when user part is not specified
This commit is contained in:
parent
0af68b683a
commit
2cfffc5f6c
1 changed files with 4 additions and 1 deletions
|
|
@ -519,7 +519,10 @@ class FileSharing:
|
||||||
):
|
):
|
||||||
"""This method retrieve a file on request, and send if after checking permissions"""
|
"""This method retrieve a file on request, and send if after checking permissions"""
|
||||||
peer_jid = session["peer_jid"]
|
peer_jid = session["peer_jid"]
|
||||||
owner = client.getOwnerFromJid(session['local_jid'])
|
if session['local_jid'].user:
|
||||||
|
owner = client.getOwnerFromJid(session['local_jid'])
|
||||||
|
else:
|
||||||
|
owner = peer_jid
|
||||||
try:
|
try:
|
||||||
found_files = yield self.host.memory.getFiles(
|
found_files = yield self.host.memory.getFiles(
|
||||||
client,
|
client,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue