[aldafu] patch for disabling sending chat state notif
This commit is contained in:
parent
4f7281dfea
commit
1a3923cdf4
|
@ -117,6 +117,7 @@ class Config:
|
|||
'dictionary_url': [opt_str, 'http://dictionary.reference.com/search?q='],
|
||||
'always_english_wikipedia': [opt_bool, False],
|
||||
'use_dbus': [opt_bool, True], # allow control via dbus service
|
||||
'send_chat_state_notifications': [opt_bool, True],
|
||||
}
|
||||
|
||||
__options_per_key = {
|
||||
|
|
|
@ -425,6 +425,10 @@ class TabbedChatWindow(chat.Chat):
|
|||
# False if peer does not support jep85
|
||||
# 'ask' if we sent 'active' chatstate and are waiting for reply
|
||||
|
||||
# do nothing if config has typing notifications disabled
|
||||
if not gajim.config.get('send_chat_state_notifications'):
|
||||
return
|
||||
|
||||
jid = self.get_active_jid()
|
||||
|
||||
if self.chatstates[jid] == False:
|
||||
|
|
Loading…
Reference in New Issue