Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marcin Mielniczuk
python-nbxmpp
Commits
02eaaa7d
Commit
02eaaa7d
authored
Jan 04, 2019
by
Philipp Hörist
Browse files
Set from to own jid if attr is not present
parent
ba07eccc
Changes
1
Show whitespace changes
Inline
Side-by-side
nbxmpp/dispatcher_nb.py
View file @
02eaaa7d
...
...
@@ -519,6 +519,9 @@ class XMPPDispatcher(PlugIn):
log
.
warning
(
'Message addressed to someone else: %s'
,
stanza
)
return
if
stanza
.
getFrom
()
is
None
:
stanza
.
setFrom
(
own_jid
.
getBare
())
# Unwrap carbon
try
:
stanza
,
properties
.
carbon_type
=
unwrap_carbon
(
stanza
,
own_jid
)
...
...
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