Skip to content

Commit

Permalink
fix(community): make sure to add the chat when inviting to a community
Browse files Browse the repository at this point in the history
  • Loading branch information
jrainville committed Oct 26, 2022
1 parent ea9a715 commit 8055662
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app_service/service/chat/service.nim
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,10 @@ QtObject:
error "no chats or messages in the parsed response"
return

for chat in chats:
if (chat.active):
self.events.emit(SIGNAL_CHAT_CREATED, CreatedChatArgs(chat: chat))

for i, msg in messages:
self.events.emit(SIGNAL_SENDING_SUCCESS, MessageSendingSuccess(message: msg, chat: chats[i]))

Expand Down

0 comments on commit 8055662

Please sign in to comment.