fix(messaging): Fix processing successfuly sent messages and remove @mayfail from relevant ui test

Fixes: #7961
This commit is contained in:
Boris Melnik 2022-11-16 13:21:15 +03:00 committed by Jonathan Rainville
parent 2d204c99d8
commit f6458facfc
2 changed files with 6 additions and 5 deletions

View File

@ -233,9 +233,12 @@ QtObject:
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]))
for msg in messages:
for chat in chats:
if chat.id == msg.chatId:
self.events.emit(SIGNAL_SENDING_SUCCESS, MessageSendingSuccess(message: msg, chat: chat))
break
proc processUpdateForTransaction*(self: Service, messageId: string, response: RpcResponse[JsonNode]) =
var (chats, messages) = self.processMessageUpdateAfterSend(response)

View File

@ -33,8 +33,6 @@ Feature: Status Desktop community messages
Then the test image is displayed just before the last message
And the last chat message contains "Message"
@mayfail
# TODO: The action of sending multiple images doesn't work. It is only sent one.
Scenario: The user sends multiple test images with a message
When the user sends multiple test images in the current channel with message "Message" with an image again
Then the test images are displayed just before the last message