Removed display of notification action buttons under hidden preview.

This commit is contained in:
23rd
2026-04-27 18:27:34 +03:00
committed by John Preston
parent 4187c87876
commit 8f14d43eed
@@ -1614,7 +1614,7 @@ void NativeManager::doShowNotification(NotificationFields &&fields) {
});
} : Fn<NotificationSound()>();
auto actions = std::vector<NotificationAction>();
if (AllowNotificationActions(peer)) {
if (AllowNotificationActions(peer) && !options.hideMarkAsRead) {
if (const auto markup = item->inlineReplyMarkup()) {
using ButtonType = HistoryMessageMarkupButton::Type;
const auto &rows = markup->data.rows;