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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Weblate
gajim
Commits
cef70e74
Commit
cef70e74
authored
11 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
remove no more needed send_gc_message function
parent
1d290a7a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/connection.py
+0
-33
0 additions, 33 deletions
src/common/connection.py
with
0 additions
and
33 deletions
src/common/connection.py
+
0
−
33
View file @
cef70e74
...
...
@@ -2571,39 +2571,6 @@ class Connection(CommonConnection, ConnectionHandlers):
t
.
setTagData
(
'
password
'
,
password
)
self
.
connection
.
send
(
p
)
def
send_gc_message
(
self
,
jid
,
msg
,
xhtml
=
None
,
label
=
None
,
correction_msg
=
None
,
callback
=
None
):
if
not
gajim
.
account_is_connected
(
self
.
name
):
return
if
correction_msg
:
id_
=
correction_msg
.
getID
()
if
correction_msg
.
getTag
(
'
replace
'
):
correction_msg
.
delChild
(
'
replace
'
)
correction_msg
.
setTag
(
'
replace
'
,
attrs
=
{
'
id
'
:
id_
},
namespace
=
nbxmpp
.
NS_CORRECT
)
id2
=
self
.
connection
.
getAnID
()
correction_msg
.
setID
(
id2
)
correction_msg
.
setBody
(
msg
)
if
xhtml
:
correction_msg
.
setXHTML
(
xhtml
)
self
.
connection
.
send
(
correction_msg
)
gajim
.
nec
.
push_incoming_event
(
MessageSentEvent
(
None
,
conn
=
self
,
jid
=
jid
,
message
=
msg
,
keyID
=
None
,
chatstate
=
None
))
if
callback
:
callback
(
correction_msg
,
msg
)
return
if
not
xhtml
and
gajim
.
config
.
get
(
'
rst_formatting_outgoing_messages
'
):
from
common.rst_xhtml_generator
import
create_xhtml
xhtml
=
create_xhtml
(
msg
)
msg_iq
=
nbxmpp
.
Message
(
jid
,
msg
,
typ
=
'
groupchat
'
,
xhtml
=
xhtml
)
if
label
is
not
None
:
msg_iq
.
addChild
(
node
=
label
)
self
.
connection
.
send
(
msg_iq
)
gajim
.
nec
.
push_incoming_event
(
MessageSentEvent
(
None
,
conn
=
self
,
jid
=
jid
,
message
=
msg
,
keyID
=
None
,
chatstate
=
None
))
if
callback
:
callback
(
msg_iq
,
msg
)
def
_nec_gc_message_outgoing
(
self
,
obj
):
if
obj
.
account
!=
self
.
name
:
return
...
...
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