From 9245c2e49bbbb6d4439e28c723d1dc1abcab47be Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sun, 12 Apr 2026 21:24:39 +0300 Subject: [PATCH] Fixed missing reply action for timecode reply in voice messages menu. Related commit: 73d0b4cb84. Fixed #30557. --- Telegram/SourceFiles/history/history_inner_widget.cpp | 1 + .../SourceFiles/history/view/history_view_context_menu.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/history/history_inner_widget.cpp b/Telegram/SourceFiles/history/history_inner_widget.cpp index 20de9f9f75..022e624c60 100644 --- a/Telegram/SourceFiles/history/history_inner_widget.cpp +++ b/Telegram/SourceFiles/history/history_inner_widget.cpp @@ -2978,6 +2978,7 @@ void HistoryInner::showContextMenu(QContextMenuEvent *e, bool showFromTouch) { [=] { const auto cur = HistoryView::CurrentVoiceTimecode(msgId); + _widget->replyToMessage({ .messageId = msgId }); _widget->insertTextAtCursor(cur.value_or(*t)); }); } diff --git a/Telegram/SourceFiles/history/view/history_view_context_menu.cpp b/Telegram/SourceFiles/history/view/history_view_context_menu.cpp index d496468d03..aeb9794c07 100644 --- a/Telegram/SourceFiles/history/view/history_view_context_menu.cpp +++ b/Telegram/SourceFiles/history/view/history_view_context_menu.cpp @@ -1369,6 +1369,9 @@ void FillContextMenuItems( [=] { const auto tc = CurrentVoiceTimecode(msgId); if (const auto strong = weak.get()) { + strong->replyToMessageRequestNotify( + { .messageId = msgId }, + base::IsCtrlPressed()); strong->insertTextAtCursor( tc.value_or(*timecode)); }