From 045604b32e0fae5d4f7cc41bcf2c4207aba8b0f3 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 26 Jun 2026 01:37:16 +0400 Subject: [PATCH] Restore IV editor Toggle Block and Map menu entries --- .../SourceFiles/iv/editor/iv_editor_box.cpp | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Telegram/SourceFiles/iv/editor/iv_editor_box.cpp b/Telegram/SourceFiles/iv/editor/iv_editor_box.cpp index e72361b7cd..a17be6b5fb 100644 --- a/Telegram/SourceFiles/iv/editor/iv_editor_box.cpp +++ b/Telegram/SourceFiles/iv/editor/iv_editor_box.cpp @@ -797,6 +797,24 @@ void Toolbar::fillAttachMenu(not_null menu) { }, &st::ivEditorToolbarAudioIcon, &st::ivEditorToolbarAudioIcon); + if (_requestMap) { + menu->addAction( + tr::lng_article_insert_map(tr::now), + [=] { + if (_editor) { + const auto parent = _tooltipParent; + auto closeRequests = parent + ? static_cast(parent.data())->death() + : rpl::never<>(); + _requestMap( + not_null(_editor.data()), + parent, + std::move(closeRequests)); + } + }, + &st::ivEditorToolbarLocationIcon, + &st::ivEditorToolbarLocationIcon); + } } void Toolbar::showAttachMenu(not_null button) { @@ -833,6 +851,11 @@ void Toolbar::fillListStyleMenu(not_null menu) { [=] { insertType(State::InsertBlockType::TaskList); }, &st::ivEditorToolbarTaskListIcon, &st::ivEditorToolbarTaskListIcon); + target->addAction( + tr::lng_article_insert_details(tr::now), + [=] { insertType(State::InsertBlockType::Details); }, + &st::ivEditorToolbarDetailsIcon, + &st::ivEditorToolbarDetailsIcon); }; const auto range = _editor