diff options
-rw-r--r-- | src/core.py | 1 | ||||
-rw-r--r-- | src/tabs.py | 18 |
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() |