[rohan] increase the position counter only when adding something to history list
This commit is contained in:
parent
3722402bbc
commit
6718408bae
|
@ -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] = ''
|
||||
|
||||
|
|
Loading…
Reference in New Issue