chore: remove useless condition from `asyncLoadInitialMessagesForChat`

This commit is contained in:
Patryk Osmaczko 2022-12-19 09:29:40 +01:00 committed by osmaczko
parent 865ed32deb
commit 3acf7dbebf
1 changed files with 0 additions and 4 deletions

View File

@ -424,13 +424,9 @@ QtObject:
if(self.initialMessagesFetched(chatId)):
return
if(self.getMessageCursor(chatId).getValue().len > 0):
return
# we're here if initial messages are not loaded yet
self.asyncLoadMoreMessagesForChat(chatId)
proc addReaction*(self: Service, chatId: string, messageId: string, emojiId: int) =
try:
let response = status_go.addReaction(chatId, messageId, emojiId)