summaryrefslogtreecommitdiff
path: root/poezio/core/handlers.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/core/handlers.py')
-rw-r--r--poezio/core/handlers.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py
index aa392d40..3e2a20a0 100644
--- a/poezio/core/handlers.py
+++ b/poezio/core/handlers.py
@@ -754,6 +754,11 @@ class HandlerCore:
old_state = tab.state
delayed, date = common.find_delayed_tag(message)
+
+ history = (tab.last_message_was_history is None and delayed) or \
+ (tab.last_message_was_history and delayed)
+ tab.last_message_was_history = history
+
replaced = False
if message.xml.find('{urn:xmpp:message-correct:0}replace') is not None:
replaced_id = message['replace']['id']
@@ -778,6 +783,7 @@ class HandlerCore:
txt=body,
time=date,
nickname=nick_from,
+ history=history,
delayed=delayed,
identifier=message['id'],
jid=message['from'],