mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed missing reply action for timecode reply in voice messages menu.
Related commit: 73d0b4cb84.
Fixed #30557.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user