mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Added support of draw-to-reply from shared media.
This commit is contained in:
@@ -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 ¶ms) {
|
||||
|
||||
Reference in New Issue
Block a user