fix(chat/messages): prevent manipulation of uninitialized cursor
fixes: #9361
This commit is contained in:
parent
7c1b4e37f3
commit
63bbf266a0
|
@ -247,6 +247,7 @@ QtObject:
|
|||
continue
|
||||
|
||||
# Ignore messages older than current chat cursor
|
||||
if(self.isChatCursorInitialized(chatId)):
|
||||
let currentChatCursor = self.initOrGetMessageCursor(chatId)
|
||||
let msgCursorValue = initCursorValue(msg.id, msg.clock)
|
||||
if(not currentChatCursor.isLessThan(msgCursorValue)):
|
||||
|
|
Loading…
Reference in New Issue