[openpgp] Use nbxmpp.namespaces

This commit is contained in:
lovetox
2020-04-19 22:12:31 +02:00
parent fcaa83e3d2
commit 4a95f1d5bc
3 changed files with 13 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ from pathlib import Path
from gi.repository import Gtk
from gi.repository import Gdk
import nbxmpp
from nbxmpp.namespaces import Namespace
from nbxmpp import JID
from gajim.common import app
@@ -129,7 +129,7 @@ class OpenPGPPlugin(GajimPlugin):
@staticmethod
def _update_caps(_account, features):
features.append('%s+notify' % nbxmpp.NS_OPENPGP_PK)
features.append('%s+notify' % Namespace.OPENPGP_PK)
def activate_encryption(self, chat_control):
account = chat_control.account