Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Dicson
gajim-plugins
Commits
fc6abe96
Commit
fc6abe96
authored
Feb 26, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[pgp] Allow origin-id in encrypted messages
parent
c7266367
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
pgp/pgpplugin.py
pgp/pgpplugin.py
+4
-1
No files found.
pgp/pgpplugin.py
View file @
fc6abe96
...
@@ -49,7 +49,9 @@ ALLOWED_TAGS = [('request', nbxmpp.NS_RECEIPTS),
...
@@ -49,7 +49,9 @@ ALLOWED_TAGS = [('request', nbxmpp.NS_RECEIPTS),
(
'store'
,
nbxmpp
.
NS_MSG_HINTS
),
(
'store'
,
nbxmpp
.
NS_MSG_HINTS
),
(
'no-copy'
,
nbxmpp
.
NS_MSG_HINTS
),
(
'no-copy'
,
nbxmpp
.
NS_MSG_HINTS
),
(
'no-permanent-store'
,
nbxmpp
.
NS_MSG_HINTS
),
(
'no-permanent-store'
,
nbxmpp
.
NS_MSG_HINTS
),
(
'replace'
,
nbxmpp
.
NS_CORRECT
)]
(
'replace'
,
nbxmpp
.
NS_CORRECT
),
(
'origin-id'
,
nbxmpp
.
NS_SID
),
]
class
OldPGPPlugin
(
GajimPlugin
):
class
OldPGPPlugin
(
GajimPlugin
):
...
@@ -281,6 +283,7 @@ class OldPGPPlugin(GajimPlugin):
...
@@ -281,6 +283,7 @@ class OldPGPPlugin(GajimPlugin):
stanza
=
nbxmpp
.
Message
(
stanza
=
nbxmpp
.
Message
(
to
=
obj
.
msg_iq
.
getTo
(),
to
=
obj
.
msg_iq
.
getTo
(),
typ
=
obj
.
msg_iq
.
getType
())
typ
=
obj
.
msg_iq
.
getType
())
stanza
.
setID
(
obj
.
stanza_id
)
stanza
.
setThread
(
obj
.
msg_iq
.
getThread
())
stanza
.
setThread
(
obj
.
msg_iq
.
getThread
())
for
tag
,
ns
in
ALLOWED_TAGS
:
for
tag
,
ns
in
ALLOWED_TAGS
:
node
=
obj
.
msg_iq
.
getTag
(
tag
,
namespace
=
ns
)
node
=
obj
.
msg_iq
.
getTag
(
tag
,
namespace
=
ns
)
...
...
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