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
eta
gajim
Commits
becf3c4c
Commit
becf3c4c
authored
19 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
handle correctly pm
parent
90e55618
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/gajim.py
+10
-10
10 additions, 10 deletions
src/gajim.py
with
10 additions
and
10 deletions
src/gajim.py
+
10
−
10
View file @
becf3c4c
...
...
@@ -488,6 +488,13 @@ class Interface:
if
gajim
.
jid_is_transport
(
jid
):
jid
=
jid
.
replace
(
'
@
'
,
''
)
groupchat_control
=
self
.
msg_win_mgr
.
get_control
(
jid
,
account
)
pm
=
False
if
groupchat_control
and
groupchat_control
.
type_id
==
\
message_control
.
TYPE_GC
:
# It's a Private message
pm
=
True
highest_contact
=
gajim
.
contacts
.
get_contact_with_highest_priority
(
account
,
jid
)
# Look for a chat control that has the given resource, or default to one
...
...
@@ -496,18 +503,17 @@ class Interface:
if
ctrl
:
jid_of_control
=
full_jid_with_resource
chat_control
=
ctrl
elif
not
highest_contact
or
not
highest_contact
.
resource
:
elif
not
pm
and
(
not
highest_contact
or
not
highest_contact
.
resource
)
:
# unknow contact or offline message
jid_of_control
=
jid
chat_control
=
self
.
msg_win_mgr
.
get_control
(
jid
,
account
)
elif
resource
!=
highest_contact
.
resource
:
elif
highest_contact
and
resource
!=
highest_contact
.
resource
:
jid_of_control
=
full_jid_with_resource
chat_control
=
None
el
se
:
el
if
not
pm
:
jid_of_control
=
jid
chat_control
=
self
.
msg_win_mgr
.
get_control
(
jid
,
account
)
groupchat_control
=
self
.
msg_win_mgr
.
get_control
(
jid
,
account
)
# Handle chat states
contact
=
gajim
.
contacts
.
get_contact
(
account
,
jid
,
resource
)
if
contact
:
...
...
@@ -534,12 +540,6 @@ class Interface:
if
not
message
:
# empty message text
return
pm
=
False
if
groupchat_control
and
groupchat_control
.
type_id
==
\
message_control
.
TYPE_GC
:
# It's a Private message
pm
=
True
first
=
False
if
not
chat_control
and
not
gajim
.
awaiting_events
[
account
].
has_key
(
jid_of_control
):
...
...
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