Fix build

This commit is contained in:
Ilya Laktyushin 2023-04-12 21:11:08 +04:00
parent e64d88916d
commit 293e7b7578

View File

@ -314,7 +314,7 @@ final class ChatMessageNotificationItemNode: NotificationItemNode {
title = "📅 \(currentTitle)" title = "📅 \(currentTitle)"
} }
if let message, item.messages.first, let attribute = message.attributes.first(where: { $0 is NotificationInfoMessageAttribute }) as? NotificationInfoMessageAttribute, attribute.flags.contains(.muted), let currentTitle = title { if let message = item.messages.first, let attribute = message.attributes.first(where: { $0 is NotificationInfoMessageAttribute }) as? NotificationInfoMessageAttribute, attribute.flags.contains(.muted), let currentTitle = title {
var isAction = false var isAction = false
for media in message.media { for media in message.media {
if media is TelegramMediaAction { if media is TelegramMediaAction {