Added support of draw-to-reply from shared media.

This commit is contained in:
23rd
2026-04-13 10:07:20 +03:00
parent de737b3cbe
commit 52615a3ccb
12 changed files with 236 additions and 41 deletions
+11
View File
@@ -1563,6 +1563,17 @@ void MainWidget::showHistory(
controller()->dropSubsectionTabs();
}
bool MainWidget::handleDrawToReplyRequest(Data::DrawToReplyRequest request) {
if (_mainSection) {
using namespace HistoryView;
if (const auto с = dynamic_cast<ChatWidget*>(_mainSection.data())) {
return с->handleDrawToReplyRequest(std::move(request));
}
return false;
}
return _history->handleDrawToReplyRequest(std::move(request));
}
void MainWidget::showMessage(
not_null<const HistoryItem*> item,
const SectionShow &params) {