Change forwarding to unquoted when changing grouping mode
This commit is contained in:
parent
6526e61f52
commit
feafe56173
2 changed files with 14 additions and 2 deletions
|
|
@ -521,7 +521,7 @@ bool ShareBox::showMenu(not_null<Ui::IconButton*> button) {
|
|||
updateAdditionalTitle();
|
||||
});
|
||||
}
|
||||
if (!cForwardQuoted() && _hasMediaMessages) {
|
||||
if (_hasMediaMessages) {
|
||||
_menu->addSeparator();
|
||||
if (!cForwardAlbumsAsIs()) {
|
||||
_menu->addAction(tr::ktg_forward_menu_default_albums(tr::now), [=] {
|
||||
|
|
@ -531,6 +531,9 @@ 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();
|
||||
|
|
@ -538,6 +541,9 @@ 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();
|
||||
|
|
|
|||
|
|
@ -5307,7 +5307,7 @@ void HistoryWidget::contextMenuEvent(QContextMenuEvent *e) {
|
|||
updateForwardingTexts();
|
||||
});
|
||||
}
|
||||
if (!cForwardQuoted() && hasMediaToGroup && count > 1) {
|
||||
if (hasMediaToGroup && count > 1) {
|
||||
_menu->addSeparator();
|
||||
if (!cForwardAlbumsAsIs()) {
|
||||
_menu->addAction(tr::ktg_forward_menu_default_albums(tr::now), [=] {
|
||||
|
|
@ -5317,6 +5317,9 @@ 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();
|
||||
|
|
@ -5324,6 +5327,9 @@ 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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue