From 6718408baed6bb2024e21cd2ec008cd5ca046e0c Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 23 Jul 2005 16:08:33 +0000 Subject: [PATCH] [rohan] increase the position counter only when adding something to history list --- src/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chat.py b/src/chat.py index f4264f907..c9ae9268e 100644 --- a/src/chat.py +++ b/src/chat.py @@ -994,8 +994,8 @@ class Chat: self.sent_history[jid][max_size - 1] = message else: self.sent_history[jid].append(message) + self.sent_history_pos[jid] = size + 1 - self.sent_history_pos[jid] = size + 1 self.typing_new[jid] = True self.orig_msg[jid] = ''