summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2013-08-04 15:29:43 +0200
committermathieui <mathieui@mathieui.net>2013-08-04 15:29:43 +0200
commitfeb101f158ff3925426177276b17272a25c75b5a (patch)
tree678da2b2023a8e465029eca046561e51da9fba11 /src
parent416ceddbe498a70d703c46a531d89aeaecb1f5f0 (diff)
downloadpoezio-feb101f158ff3925426177276b17272a25c75b5a.tar.gz
poezio-feb101f158ff3925426177276b17272a25c75b5a.tar.bz2
poezio-feb101f158ff3925426177276b17272a25c75b5a.tar.xz
poezio-feb101f158ff3925426177276b17272a25c75b5a.zip
Fix some refresh quirks
Diffstat (limited to 'src')
-rw-r--r--src/core.py1
-rw-r--r--src/tabs.py18
2 files changed, 19 insertions, 0 deletions
diff --git a/src/core.py b/src/core.py
index 9de53b51..4c1dd032 100644
--- a/src/core.py
+++ b/src/core.py
@@ -3161,6 +3161,7 @@ class Core(object):
self.xmpp.send_message(mto=jid.full, mbody=msg, mtype='chat')
return
self.events.trigger('private_msg', message, tab)
+ body = xhtml.get_body_from_message_stanza(message)
if not body or not tab:
return
replaced_id = message['replace']['id']
diff --git a/src/tabs.py b/src/tabs.py
index bae192e6..168a0459 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -1241,6 +1241,9 @@ class MucTab(ChatTab):
# be converted in xhtml.
self.core.events.trigger('muc_say', msg, self)
if not msg['body']:
+ self.cancel_paused_delay()
+ self.text_win.refresh()
+ self.input.refresh()
return
if msg['body'].find('\x19') != -1:
msg.enable('html')
@@ -1253,6 +1256,9 @@ class MucTab(ChatTab):
self.cancel_paused_delay()
self.core.events.trigger('muc_say_after', msg, self)
if not msg['body']:
+ self.cancel_paused_delay()
+ self.text_win.refresh()
+ self.input.refresh()
return
self.last_sent_message = msg
msg.send()
@@ -1929,6 +1935,9 @@ class PrivateTab(ChatTab):
# be converted in xhtml.
self.core.events.trigger('private_say', msg, self)
if not msg['body']:
+ self.cancel_paused_delay()
+ self.text_win.refresh()
+ self.input.refresh()
return
user = self.parent_muc.get_user_by_name(self.own_nick)
replaced = False
@@ -1961,6 +1970,9 @@ class PrivateTab(ChatTab):
msg['attention'] = True
self.core.events.trigger('private_say_after', msg, self)
if not msg['body']:
+ self.cancel_paused_delay()
+ self.text_win.refresh()
+ self.input.refresh()
return
self.last_sent_message = msg
msg.send()
@@ -3125,6 +3137,9 @@ class ConversationTab(ChatTab):
# be converted in xhtml.
self.core.events.trigger('conversation_say', msg, self)
if not msg['body']:
+ self.cancel_paused_delay()
+ self.text_win.refresh()
+ self.input.refresh()
return
replaced = False
if correct:
@@ -3154,6 +3169,9 @@ class ConversationTab(ChatTab):
msg['attention'] = True
self.core.events.trigger('conversation_say_after', msg, self)
if not msg['body']:
+ self.cancel_paused_delay()
+ self.text_win.refresh()
+ self.input.refresh()
return
self.last_sent_message = msg
msg.send()