fix(@desktop/chat): Fix 1:1 chat

Incoming messages and edited messages are shown correctly in 1:1 chat

Fix #5858
This commit is contained in:
Michal Iskierko 2022-05-24 12:11:38 +02:00 committed by Iuri Matias
parent 92d047173f
commit 595bca0294
1 changed files with 2 additions and 2 deletions

View File

@ -169,7 +169,7 @@ QtObject:
for msg in messages:
if(msg.editedAt > 0):
let data = MessageEditedArgs(chatId: msg.chatId, message: msg)
let data = MessageEditedArgs(chatId: msg.localChatId, message: msg)
self.events.emit(SIGNAL_MESSAGE_EDITED, data)
if msg.responseTo.len > 0:
messagesOneRepliedTo.add(msg.responseTo)
@ -184,7 +184,7 @@ QtObject:
var chatMessages: seq[MessageDto]
for msg in messages:
if (msg.chatId == chats[i].id):
if (msg.localChatId == chats[i].id):
chatMessages.add(msg)
if chats[i].communityId.len == 0: