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'):
|
||||
return
|
||||
|
||||
if self.contact.jid == gajim.get_jid_from_account(self.account):
|
||||
return
|
||||
|
||||
elif chatstate_setting == 'composing_only' and state != 'active' and\
|
||||
state != 'composing':
|
||||
return
|
||||
|
|
|
@ -701,7 +701,9 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
|||
# refresh timers
|
||||
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
|
||||
|
||||
label = self.get_seclabel()
|
||||
|
|
Loading…
Add table
Reference in a new issue