diff options
author | mathieui <mathieui@mathieui.net> | 2014-04-29 22:14:03 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2014-04-29 22:14:03 +0200 |
commit | 5f0afab060aa84a1cd1a81ade027f80b580a291d (patch) | |
tree | c97a42b4f5b3972509325179790cff67751e1be3 /src/core | |
parent | 793b78f0090d2e45e49cab9808b40f03a0b20e02 (diff) | |
download | poezio-5f0afab060aa84a1cd1a81ade027f80b580a291d.tar.gz poezio-5f0afab060aa84a1cd1a81ade027f80b580a291d.tar.bz2 poezio-5f0afab060aa84a1cd1a81ade027f80b580a291d.tar.xz poezio-5f0afab060aa84a1cd1a81ade027f80b580a291d.zip |
Do not ask for receipts in messages without a body
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/handlers.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py index 12e07201..ad696eb1 100644 --- a/src/core/handlers.py +++ b/src/core/handlers.py @@ -12,6 +12,7 @@ from hashlib import sha1 from gettext import gettext as _ from sleekxmpp import InvalidJID +from sleekxmpp.stanza import Message from sleekxmpp.xmlstream.stanzabase import StanzaBase import bookmark @@ -584,7 +585,7 @@ def on_chatstate_normal_conversation(self, message, state): tab.refresh_info_header() self.doupdate() else: - composing_tab_state(tab, state) + _composing_tab_state(tab, state) self.refresh_tab_win() return True @@ -602,7 +603,7 @@ def on_chatstate_private_conversation(self, message, state): tab.refresh_info_header() self.doupdate() else: - composing_tab_state(tab, state) + _composing_tab_state(tab, state) self.refresh_tab_win() return True @@ -622,7 +623,7 @@ def on_chatstate_groupchat_conversation(self, message, state): tab.input.refresh() self.doupdate() else: - composing_tab_state(tab, state) + _composing_tab_state(tab, state) self.refresh_tab_win() ### subscription-related handlers ### @@ -1098,7 +1099,7 @@ def validate_ssl(self, pem): self.information(_('Unable to write in the config file'), 'Error') -def composing_tab_state(tab, state): +def _composing_tab_state(tab, state): """ Set a tab state to or from the "composing" state according to the config and the current tab state @@ -1124,3 +1125,4 @@ def composing_tab_state(tab, state): elif tab.state == 'composing' and state != 'composing': tab.restore_state() + |