[httpupload] Use aegscm url scheme for omemo uploads
This commit is contained in:
@@ -398,6 +398,7 @@ class Base(object):
|
|||||||
message = file.get
|
message = file.get
|
||||||
if file.user_data:
|
if file.user_data:
|
||||||
message += '#' + file.user_data
|
message += '#' + file.user_data
|
||||||
|
message = self.convert_to_aegscm(message)
|
||||||
else:
|
else:
|
||||||
self.plugin.messages.append(message)
|
self.plugin.messages.append(message)
|
||||||
file.control.send_message(message=message)
|
file.control.send_message(message=message)
|
||||||
@@ -416,6 +417,10 @@ class Base(object):
|
|||||||
ErrorDialog(_('Error'), str(reason),
|
ErrorDialog(_('Error'), str(reason),
|
||||||
transient_for=file.control.parent_win.window)
|
transient_for=file.control.parent_win.window)
|
||||||
|
|
||||||
|
@staticmethod
|
||||||
|
def convert_to_aegscm(url):
|
||||||
|
return 'aesgcm' + url[5:]
|
||||||
|
|
||||||
|
|
||||||
class File:
|
class File:
|
||||||
def __init__(self, path, **kwargs):
|
def __init__(self, path, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user