Mercurial > libervia-backend
changeset 3516:e47aa1fb7b24
plugin XEP-0329: fix root node retrieval and `_fileSendingRequestTrigger` return value
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 01 May 2021 18:25:42 +0200 |
parents | 2dce411c2647 |
children | 8508fab9bcc2 |
files | sat/plugins/plugin_xep_0329.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0329.py Sat May 01 18:23:42 2021 +0200 +++ b/sat/plugins/plugin_xep_0329.py Sat May 01 18:25:42 2021 +0200 @@ -212,9 +212,6 @@ '[{profile}]').format(path=path, profile=client.profile)) raise exceptions.PermissionError("illegal path elements") - if not path_elts: - raise exceptions.DataError(_("path is invalid: {path}").format(path=path)) - node = client._XEP_0329_root_node while path_elts: @@ -448,7 +445,7 @@ size=size, data_cb=lambda data: hasher.update(data), ) - return False, True + return False, defer.succeed(True) # common methods