Dont send chatstates to own resources
This commit is contained in:
parent
2126d4304a
commit
e02798dc19
2 changed files with 6 additions and 1 deletions
|
@ -1233,6 +1233,9 @@ class ChatControl(ChatControlBase):
|
||||||
if contact and contact.sub in ('to', 'none'):
|
if contact and contact.sub in ('to', 'none'):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
if self.contact.jid == gajim.get_jid_from_account(self.account):
|
||||||
|
return
|
||||||
|
|
||||||
elif chatstate_setting == 'composing_only' and state != 'active' and\
|
elif chatstate_setting == 'composing_only' and state != 'active' and\
|
||||||
state != 'composing':
|
state != 'composing':
|
||||||
return
|
return
|
||||||
|
|
|
@ -701,7 +701,9 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
# refresh timers
|
# refresh timers
|
||||||
self.reset_kbd_mouse_timeout_vars()
|
self.reset_kbd_mouse_timeout_vars()
|
||||||
|
|
||||||
if gajim.config.get('outgoing_chat_state_notifications') == 'disabled':
|
notifications = gajim.config.get('outgoing_chat_state_notifications')
|
||||||
|
if (self.contact.jid == gajim.get_jid_from_account(self.account) or
|
||||||
|
notifications == 'disabled'):
|
||||||
chatstate = None
|
chatstate = None
|
||||||
|
|
||||||
label = self.get_seclabel()
|
label = self.get_seclabel()
|
||||||
|
|
Loading…
Add table
Reference in a new issue