diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-11-11 01:43:26 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-11-11 01:43:26 +0300 |
commit | ce54f7a9f824230b756e0f313c4c1964c1c118d4 (patch) | |
tree | c03fdfd9b18a735e8c8b170c7c57c9dde236350d | |
parent | f36d94b58dbdebd016de6aabb617ec2ca2319b73 (diff) |
[httpupload] Use aegscm url scheme for omemo uploads
-rw-r--r-- | httpupload/httpupload.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/httpupload/httpupload.py b/httpupload/httpupload.py index 6713f41..e8e2a53 100644 --- a/httpupload/httpupload.py +++ b/httpupload/httpupload.py @@ -398,6 +398,7 @@ class Base(object): message = file.get if file.user_data: message += '#' + file.user_data + message = self.convert_to_aegscm(message) else: self.plugin.messages.append(message) file.control.send_message(message=message) @@ -416,6 +417,10 @@ class Base(object): ErrorDialog(_('Error'), str(reason), transient_for=file.control.parent_win.window) + @staticmethod + def convert_to_aegscm(url): + return 'aesgcm' + url[5:] + class File: def __init__(self, path, **kwargs): |