Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Yann Leboulanger
gajim
Commits
8b7aae56
Commit
8b7aae56
authored
Oct 03, 2018
by
Philipp Hörist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MUC: Set active chatstate on messages
parent
b6c43c90
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
gajim/common/modules/chatstates.py
gajim/common/modules/chatstates.py
+6
-5
No files found.
gajim/common/modules/chatstates.py
View file @
8b7aae56
...
...
@@ -166,12 +166,13 @@ class Chatstate:
if
setting
==
'disabled'
:
return
None
# Dont send chatstates to ourself
if
self
.
_con
.
get_own_jid
().
bareMatch
(
contact
.
jid
):
return
None
if
not
contact
.
is_groupchat
():
# Dont send chatstates to ourself
if
self
.
_con
.
get_own_jid
().
bareMatch
(
contact
.
jid
):
return
None
if
not
contact
.
supports
(
nbxmpp
.
NS_CHATSTATES
):
return
None
if
not
contact
.
supports
(
nbxmpp
.
NS_CHATSTATES
):
return
None
self
.
set_active
(
contact
.
jid
)
return
'active'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment