Restore media grouping options for quoted forward
They aren't working for photos, but work fine for files.
This commit is contained in:
parent
e5123d56df
commit
f7025ba3b2
2 changed files with 2 additions and 14 deletions
|
|
@ -531,9 +531,6 @@ bool ShareBox::showMenu(not_null<Ui::IconButton*> button) {
|
|||
}
|
||||
if (cForwardAlbumsAsIs() || !cForwardGrouped()) {
|
||||
_menu->addAction(tr::ktg_forward_menu_group_all_media(tr::now), [=] {
|
||||
if (cForwardQuoted()) {
|
||||
cSetForwardQuoted(false);
|
||||
}
|
||||
cSetForwardAlbumsAsIs(false);
|
||||
cSetForwardGrouped(true);
|
||||
updateAdditionalTitle();
|
||||
|
|
@ -541,9 +538,6 @@ bool ShareBox::showMenu(not_null<Ui::IconButton*> button) {
|
|||
}
|
||||
if (cForwardAlbumsAsIs() || cForwardGrouped()) {
|
||||
_menu->addAction(tr::ktg_forward_menu_separate_messages(tr::now), [=] {
|
||||
if (cForwardQuoted()) {
|
||||
cSetForwardQuoted(false);
|
||||
}
|
||||
cSetForwardAlbumsAsIs(false);
|
||||
cSetForwardGrouped(false);
|
||||
updateAdditionalTitle();
|
||||
|
|
@ -572,7 +566,7 @@ void ShareBox::updateAdditionalTitle() {
|
|||
: tr::ktg_forward_subtitle_uncaptioned(tr::now));
|
||||
}
|
||||
|
||||
if (!cForwardQuoted() && _hasMediaMessages && !cForwardAlbumsAsIs()) {
|
||||
if (_hasMediaMessages && !cForwardAlbumsAsIs()) {
|
||||
if (!result.isEmpty()) {
|
||||
result += ", ";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5307,9 +5307,6 @@ void HistoryWidget::contextMenuEvent(QContextMenuEvent *e) {
|
|||
}
|
||||
if (cForwardAlbumsAsIs() || !cForwardGrouped()) {
|
||||
_menu->addAction(tr::ktg_forward_menu_group_all_media(tr::now), [=] {
|
||||
if (cForwardQuoted()) {
|
||||
cSetForwardQuoted(false);
|
||||
}
|
||||
cSetForwardAlbumsAsIs(false);
|
||||
cSetForwardGrouped(true);
|
||||
updateForwardingTexts();
|
||||
|
|
@ -5317,9 +5314,6 @@ void HistoryWidget::contextMenuEvent(QContextMenuEvent *e) {
|
|||
}
|
||||
if (cForwardAlbumsAsIs() || cForwardGrouped()) {
|
||||
_menu->addAction(tr::ktg_forward_menu_separate_messages(tr::now), [=] {
|
||||
if (cForwardQuoted()) {
|
||||
cSetForwardQuoted(false);
|
||||
}
|
||||
cSetForwardAlbumsAsIs(false);
|
||||
cSetForwardGrouped(false);
|
||||
updateForwardingTexts();
|
||||
|
|
@ -6618,7 +6612,7 @@ void HistoryWidget::updateForwardingTexts() {
|
|||
: qsl(", ") + (cForwardCaptioned()
|
||||
? tr::ktg_forward_subtitle_unquoted(tr::now)
|
||||
: tr::ktg_forward_subtitle_uncaptioned(tr::now)))
|
||||
+ (cForwardQuoted() || cForwardAlbumsAsIs() || !hasMediaToGroup
|
||||
+ (cForwardAlbumsAsIs() || !hasMediaToGroup
|
||||
? QString()
|
||||
: qsl(", ") + (cForwardGrouped()
|
||||
? tr::ktg_forward_subtitle_group_all_media(tr::now)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue