Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mesonium
gajim
Commits
ae397ca8
Commit
ae397ca8
authored
4 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
Message: Allow plugins to add arbitrary xml elements
parent
147ed3c5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gajim/common/modules/message.py
+5
-0
5 additions, 0 deletions
gajim/common/modules/message.py
gajim/common/structs.py
+4
-1
4 additions, 1 deletion
gajim/common/structs.py
with
9 additions
and
1 deletion
gajim/common/modules/message.py
+
5
−
0
View file @
ae397ca8
...
...
@@ -343,6 +343,11 @@ def build_message_stanza(self, message):
stanza
.
setTag
(
'
no-store
'
,
namespace
=
Namespace
.
MSG_HINTS
)
# Add other nodes
if
message
.
nodes
is
not
None
:
for
node
in
message
.
nodes
:
stanza
.
addChild
(
node
=
node
)
return
stanza
def
log_message
(
self
,
message
):
...
...
This diff is collapsed.
Click to expand it.
gajim/common/structs.py
+
4
−
1
View file @
ae397ca8
...
...
@@ -65,7 +65,8 @@ def __init__(self,
correct_id
=
None
,
automatic_message
=
False
,
oob_url
=
None
,
xhtml
=
None
):
xhtml
=
None
,
nodes
=
None
):
if
type_
not
in
(
'
chat
'
,
'
groupchat
'
,
'
normal
'
,
'
headline
'
):
raise
ValueError
(
'
Unknown message type: %s
'
%
type_
)
...
...
@@ -110,6 +111,8 @@ def __init__(self,
if
xhtml
is
not
None
:
self
.
additional_data
.
set_value
(
'
gajim
'
,
'
xhtml
'
,
xhtml
)
self
.
nodes
=
nodes
self
.
timestamp
=
None
self
.
message_id
=
None
self
.
stanza
=
None
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment