Dont send chatstates to own resources

This commit is contained in:
Philipp Hörist 2017-05-01 17:52:19 +02:00
parent 2126d4304a
commit e02798dc19
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -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()