fix: notifications

This commit is contained in:
Richard Ramos 2021-07-02 11:15:57 -04:00 committed by Iuri Matias
parent 2c553f48f7
commit fd976c770d
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ QtObject:
if not channel.muted:
let isAddedContact = channel.chatType.isOneToOne and self.isAddedContact(channel.id)
self.messageNotificationPushed(msg.chatId, escape_html(msg.text), msg.messageType, channel.chatType.int, msg.timestamp, msg.identicon, msg.userName, msg.hasMention, isAddedContact, channel.name)
if msg.editedAt == "0": # Do not push notifications for edit messages
self.messageNotificationPushed(msg.chatId, escape_html(msg.text), msg.messageType, channel.chatType.int, msg.timestamp, msg.identicon, msg.userName, msg.hasMention, isAddedContact, channel.name)
proc markMessageAsSent*(self:MessageView, chat: string, messageId: string) =
if self.messageList.contains(chat):