summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/handlers.py10
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()
+