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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user