fix: fix chat not scrolling because the signal was not called
This commit is contained in:
parent
d5f8148fc3
commit
a5fce2b7de
|
@ -319,6 +319,11 @@ QtObject:
|
||||||
if (channel == nil):
|
if (channel == nil):
|
||||||
continue
|
continue
|
||||||
let isAddedContact = channel.chatType.isOneToOne and self.status.contacts.isAdded(channel.id)
|
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:
|
if not channel.muted:
|
||||||
self.messageNotificationPushed(
|
self.messageNotificationPushed(
|
||||||
msg.chatId,
|
msg.chatId,
|
||||||
|
@ -331,9 +336,6 @@ QtObject:
|
||||||
msg.hasMention,
|
msg.hasMention,
|
||||||
isAddedContact,
|
isAddedContact,
|
||||||
channel.name)
|
channel.name)
|
||||||
else:
|
|
||||||
discard self.status.chat.markMessagesSeen(msg.chatId, @[msg.id])
|
|
||||||
self.newMessagePushed()
|
|
||||||
|
|
||||||
proc updateUsernames*(self:ChatsView, contacts: seq[Profile]) =
|
proc updateUsernames*(self:ChatsView, contacts: seq[Profile]) =
|
||||||
if contacts.len > 0:
|
if contacts.len > 0:
|
||||||
|
|
Loading…
Reference in New Issue