[aldafu] patch for disabling sending chat state notif

This commit is contained in:
Nikos Kouremenos 2005-07-19 22:59:20 +00:00
parent 4f7281dfea
commit 1a3923cdf4
2 changed files with 5 additions and 0 deletions

View File

@ -117,6 +117,7 @@ class Config:
'dictionary_url': [opt_str, 'http://dictionary.reference.com/search?q='], 'dictionary_url': [opt_str, 'http://dictionary.reference.com/search?q='],
'always_english_wikipedia': [opt_bool, False], 'always_english_wikipedia': [opt_bool, False],
'use_dbus': [opt_bool, True], # allow control via dbus service 'use_dbus': [opt_bool, True], # allow control via dbus service
'send_chat_state_notifications': [opt_bool, True],
} }
__options_per_key = { __options_per_key = {

View File

@ -425,6 +425,10 @@ class TabbedChatWindow(chat.Chat):
# False if peer does not support jep85 # False if peer does not support jep85
# 'ask' if we sent 'active' chatstate and are waiting for reply # '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() jid = self.get_active_jid()
if self.chatstates[jid] == False: if self.chatstates[jid] == False: