[form_handler] Use nbxmpp Namespace

This commit is contained in:
wurstsalat
2021-10-26 23:41:24 +02:00
parent a96421fefa
commit 55cd5e3b98

View File

@@ -16,8 +16,8 @@
import logging
import nbxmpp
from nbxmpp.modules.dataforms import extend_form
from nbxmpp.namespaces import Namespace
from gajim.common import ged
@@ -45,7 +45,7 @@ class FormHandlerPlugin(GajimPlugin):
}
def _on_message_received(self, event):
form = event.stanza.getTag('x', namespace=nbxmpp.NS_DATA)
form = event.stanza.getTag('x', namespace=Namespace.DATA)
if form is None:
return