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
38b940ef
Commit
38b940ef
authored
9 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
update control.contact when we get a message from another resource. Fixes #7919
parent
4674a64d
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/session.py
+6
-4
6 additions, 4 deletions
src/session.py
with
6 additions
and
4 deletions
src/session.py
+
6
−
4
View file @
38b940ef
...
...
@@ -65,10 +65,14 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
"""
if
obj
.
session
!=
self
:
return
contact
=
gajim
.
contacts
.
get_contact
(
self
.
conn
.
name
,
obj
.
jid
,
obj
.
resource
)
if
self
.
resource
!=
obj
.
resource
:
self
.
resource
=
obj
.
resource
if
self
.
control
and
self
.
control
.
resource
:
self
.
control
.
change_resource
(
self
.
resource
)
if
self
.
control
:
self
.
control
.
contact
=
contact
if
self
.
control
.
resource
:
self
.
control
.
change_resource
(
self
.
resource
)
if
obj
.
mtype
==
'
chat
'
:
if
not
obj
.
stanza
.
getTag
(
'
body
'
)
and
obj
.
chatstate
is
None
:
...
...
@@ -114,8 +118,6 @@ class ChatControlSession(stanza_session.EncryptedStanzaSession):
obj
.
mtype
=
'
pm
'
# Handle chat states
contact
=
gajim
.
contacts
.
get_contact
(
self
.
conn
.
name
,
obj
.
jid
,
obj
.
resource
)
if
contact
and
(
not
obj
.
forwarded
or
not
obj
.
sent
):
if
self
.
control
and
self
.
control
.
type_id
==
\
message_control
.
TYPE_CHAT
:
...
...
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