2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Change chat for forwarded items by click on them.

Closes #3637
This commit is contained in:
John Preston
2017-07-11 13:23:15 +03:00
parent d94ef82327
commit ac99784bf7
9 changed files with 84 additions and 62 deletions

View File

@@ -1417,9 +1417,11 @@ void OverviewInner::goToMessage() {
void OverviewInner::forwardMessage() {
auto item = App::contextItem();
if (!item || item->id < 0) return;
if (!item || item->id < 0 || item->serviceMsg()) return;
App::main()->forwardLayer();
auto items = SelectedItemSet();
items.insert(item->id, item);
App::main()->showForwardLayer(items);
}
MsgId OverviewInner::complexMsgId(const HistoryItem *item) const {
@@ -2336,7 +2338,7 @@ bool OverviewWidget::touchScroll(const QPoint &delta) {
}
void OverviewWidget::onForwardSelected() {
App::main()->forwardLayer(true);
App::main()->showForwardLayer(getSelectedItems());
}
void OverviewWidget::confirmDeleteContextItem() {