fix(chat): Fixed invitations sending to multiple users

This commit is contained in:
Igor Sirotin 2022-09-29 20:49:22 +03:00 committed by Igor Sirotin
parent f32e551c75
commit 670a8e280c
1 changed files with 2 additions and 2 deletions

View File

@ -230,8 +230,8 @@ QtObject:
error "no chats or messages in the parsed response"
return
for msg in messages:
self.events.emit(SIGNAL_SENDING_SUCCESS, MessageSendingSuccess(message: msg, chat: chats[0]))
for i, msg in messages:
self.events.emit(SIGNAL_SENDING_SUCCESS, MessageSendingSuccess(message: msg, chat: chats[i]))
proc processUpdateForTransaction*(self: Service, messageId: string, response: RpcResponse[JsonNode]) =
var (chats, messages) = self.processMessageUpdateAfterSend(response)