Fixed missing reply action for timecode reply in voice messages menu.

Related commit: 73d0b4cb84.
Fixed #30557.
This commit is contained in:
23rd
2026-04-12 21:24:39 +03:00
parent 365cd728b8
commit 9245c2e49b
2 changed files with 4 additions and 0 deletions
@@ -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));
});
}
@@ -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));
}