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