Skip to content

Commit

Permalink
fix(@desktop/channels): chat/channel messages loading state is not di…
Browse files Browse the repository at this point in the history
…sappearing
  • Loading branch information
mprakhov committed Apr 5, 2023
1 parent 840b998 commit ca1a14f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app_service/service/message/service.nim
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,12 @@ QtObject:

proc asyncLoadInitialMessagesForChat*(self: Service, chatId: string) =
if(self.isChatCursorInitialized(chatId)):
let data = MessagesLoadedArgs(chatId: chatId,
messages: @[],
pinnedMessages: @[],
reactions: @[])

self.events.emit(SIGNAL_MESSAGES_LOADED, data)
return

self.asyncLoadMoreMessagesForChat(chatId)
Expand Down

0 comments on commit ca1a14f

Please sign in to comment.