mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-18 18:44:01 +00:00
Update src/app/chat/view.nim
Co-authored-by: Eric Mastro <eric.mastro@gmail.com>
This commit is contained in:
parent
054d3579d7
commit
0aed036fa1
@ -155,7 +155,7 @@ QtObject:
|
||||
msg.alias = self.status.chat.getUserName(msg.fromAuthor, msg.alias)
|
||||
self.messageList[msg.chatId].add(msg)
|
||||
self.messagePushed()
|
||||
if msg.chatId != self.activeChannel.id and self.channelOpenTime.hasKey(msg.chatId) and self.channelOpenTime[msg.chatId] < msg.timestamp.parseFloat.fromUnixFloat.toUnix:
|
||||
if msg.chatId != self.activeChannel.id and self.channelOpenTime.getOrDefault(msg.chatId, high(int64)) < msg.timestamp.parseFloat.fromUnixFloat.toUnix:
|
||||
self.messageNotificationPushed(msg.chatId, msg.text)
|
||||
|
||||
proc updateUsernames*(self:ChatsView, contacts: seq[Profile]) =
|
||||
@ -270,4 +270,3 @@ QtObject:
|
||||
|
||||
proc ensResolved(self: ChatsView, pubKey: string) {.slot.} =
|
||||
self.ensWasResolved(pubKey)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user