Fix edit message showing twice in notifications.

This commit is contained in:
Clark
2023-05-18 09:06:21 -04:00
committed by Nicholas Tinsley
parent 29ffed219f
commit 33745f0b0c
2 changed files with 2 additions and 2 deletions

View File

@@ -204,7 +204,7 @@ sealed class NotificationItem(val threadRecipient: Recipient, protected val reco
class MessageNotification(threadRecipient: Recipient, record: MessageRecord) : NotificationItem(threadRecipient, record) {
override val timestamp: Long = record.timestamp
override val authorRecipient: Recipient = record.fromRecipient.resolve()
override val isNewNotification: Boolean = notifiedTimestamp == 0L
override val isNewNotification: Boolean = notifiedTimestamp == 0L && !record.isEditMessage
val hasSelfMention = record.hasSelfMention()
private var thumbnailInfo: ThumbnailInfo? = null