fix: fix chat not scrolling because the signal was not called

This commit is contained in:
Jonathan Rainville 2021-01-13 16:23:42 -05:00 committed by Iuri Matias
parent d5f8148fc3
commit a5fce2b7de
1 changed files with 5 additions and 3 deletions

View File

@ -319,6 +319,11 @@ QtObject:
if (channel == nil):
continue
let isAddedContact = channel.chatType.isOneToOne and self.status.contacts.isAdded(channel.id)
if msg.chatId == self.activeChannel.id:
discard self.status.chat.markMessagesSeen(msg.chatId, @[msg.id])
self.newMessagePushed()
if not channel.muted:
self.messageNotificationPushed(
msg.chatId,
@ -331,9 +336,6 @@ QtObject:
msg.hasMention,
isAddedContact,
channel.name)
else:
discard self.status.chat.markMessagesSeen(msg.chatId, @[msg.id])
self.newMessagePushed()
proc updateUsernames*(self:ChatsView, contacts: seq[Profile]) =
if contacts.len > 0: