Skip to content
Snippets Groups Projects
Commit 944950d7 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[httpupload] Fix reference error

omemo was not assigned before reference
if there was no omemo plugin found
parent f6e76280
No related branches found
No related tags found
No related merge requests found
......@@ -282,13 +282,10 @@ class Base(object):
account = self.chat_control.account
for plugin in gajim.plugin_manager.active_plugins:
if type(plugin).__name__ == 'OmemoPlugin':
omemo = plugin
break
if omemo:
state = omemo.get_omemo_state(account)
log.info('Encryption is: ' +
str(state.encryption.is_active(jid)))
return state.encryption.is_active(jid)
state = plugin.get_omemo_state(account)
log.info('Encryption is: ' +
str(state.encryption.is_active(jid)))
return state.encryption.is_active(jid)
log.info('Encryption is: False / OMEMO not found')
return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment