2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Beta version 3.1.6: Detach FastReply from MarkAsRead.

This commit is contained in:
John Preston
2021-10-06 19:24:30 +04:00
parent 8b7cd4a0c7
commit 5cd0a3719e
8 changed files with 68 additions and 85 deletions

View File

@@ -593,11 +593,13 @@ Manager::DisplayOptions Manager::getNotificationOptions(
|| (view > Core::Settings::NotifyView::ShowName);
result.hideMessageText = hideEverything
|| (view > Core::Settings::NotifyView::ShowPreview);
result.hideReplyButton = result.hideMessageText
result.hideMarkAsRead = result.hideMessageText
|| !item
|| ((item->out() || item->history()->peer->isSelf())
&& item->isFromScheduled())
&& item->isFromScheduled());
result.hideReplyButton = result.hideMarkAsRead
|| !item->history()->peer->canWrite()
|| item->history()->peer->isBroadcast()
|| (item->history()->peer->slowmodeSecondsLeft() > 0);
return result;
}
@@ -755,8 +757,7 @@ void NativeManager::doShowNotification(
scheduled ? WrapFromScheduled(fullTitle) : fullTitle,
subtitle,
text,
options.hideNameAndPhoto,
options.hideReplyButton);
options);
}
bool NativeManager::forceHideDetails() const {