Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim-plugins
Commits
55cd5e3b
Commit
55cd5e3b
authored
Oct 26, 2021
by
Daniel Brötzmann
Browse files
[form_handler] Use nbxmpp Namespace
parent
a96421fe
Pipeline
#8623
canceled with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
form_handler/plugin.py
View file @
55cd5e3b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment