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
f87f56ed
Commit
f87f56ed
authored
5 years ago
by
Philipp Hörist
Browse files
Options
Downloads
Patches
Plain Diff
GroupchatControl: Dont handle PM's if a control is open
The PrivateChatControl handles messages on its own
parent
235f2a80
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
gajim/groupchat_control.py
+14
-23
14 additions, 23 deletions
gajim/groupchat_control.py
with
14 additions
and
23 deletions
gajim/groupchat_control.py
+
14
−
23
View file @
f87f56ed
...
...
@@ -1090,31 +1090,22 @@ def _nec_signed_in(self, obj):
def
_nec_decrypted_message_received
(
self
,
obj
):
if
obj
.
conn
.
name
!=
self
.
account
:
return
if
obj
.
gc_control
==
self
and
obj
.
resource
:
if
not
obj
.
properties
.
jid
.
bareMatch
(
self
.
room_jid
):
return
if
obj
.
properties
.
is_muc_pm
and
not
obj
.
session
.
control
:
# We got a pm from this room
nick
=
obj
.
resource
if
obj
.
session
.
control
:
# print if a control is open
frm
=
''
if
obj
.
properties
.
is_sent_carbon
:
frm
=
'
out
'
obj
.
session
.
control
.
add_message
(
obj
.
msgtxt
,
frm
,
tim
=
obj
.
properties
.
timestamp
,
displaymarking
=
obj
.
displaymarking
,
message_id
=
obj
.
properties
.
id
,
correct_id
=
obj
.
correct_id
)
else
:
# otherwise pass it off to the control to be queued
self
.
on_private_message
(
nick
,
obj
.
properties
.
is_sent_carbon
,
obj
.
msgtxt
,
obj
.
properties
.
timestamp
,
self
.
session
,
obj
.
additional_data
,
msg_log_id
=
obj
.
msg_log_id
,
displaymarking
=
obj
.
displaymarking
)
# otherwise pass it off to the control to be queued
self
.
on_private_message
(
nick
,
obj
.
properties
.
is_sent_carbon
,
obj
.
msgtxt
,
obj
.
properties
.
timestamp
,
self
.
session
,
obj
.
additional_data
,
msg_log_id
=
obj
.
msg_log_id
,
displaymarking
=
obj
.
displaymarking
)
def
_nec_ping
(
self
,
obj
):
if
self
.
contact
.
jid
!=
obj
.
contact
.
room_jid
:
...
...
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