Commit e89bafc5 authored by Alexander's avatar Alexander
Browse files

[stickers] Replace app.connections[...]

parent 8cf721b9
Pipeline #7756 passed with stage
in 1 minute and 49 seconds
......@@ -484,7 +484,7 @@ class StickersModule(BaseModule):
if not upload:
module = app.connections[self._account].get_module('HTTPUpload')
module = self._client.get_module('HTTPUpload')
if not module.available:
ErrorDialog(_('Sticker Pack Upload'),
_('Cannot upload sticker pack as this is unsupported on the server.'))
......@@ -514,7 +514,7 @@ class StickersModule(BaseModule):
if int(node_config['pubsub#max_items'].value) < max_items:
node_config['pubsub#max_items'].value = max_items
log.debug('Setting PubSub node config')
pubsub = app.connections[self._account].get_module('PubSub')
pubsub = self._client.get_module('PubSub')
......@@ -551,7 +551,7 @@ class StickersModule(BaseModule):
sticker_pack: The sticker pack object that should be published
upload: Should the stickers be first uploaded using HTTP Upload
pubsub = app.connections[self._account].get_module('PubSub')
pubsub = self._client.get_module('PubSub')
log.debug('Requesting PubSub node config')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment