From dd1aac53b981fc57b3fc23ad25bdfd3ce8adc15f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 3 Dec 2023 15:54:00 +0300 Subject: NewStory: a service for returning SRMM dialog that owns NS window --- protocols/Telegram/src/menus.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols/Telegram') diff --git a/protocols/Telegram/src/menus.cpp b/protocols/Telegram/src/menus.cpp index cd77cbe396..6efe0de807 100644 --- a/protocols/Telegram/src/menus.cpp +++ b/protocols/Telegram/src/menus.cpp @@ -180,7 +180,7 @@ public: INT_PTR CTelegramProto::SvcExecMenu(WPARAM iCommand, LPARAM pHandle) { - MEVENT hCurrentEvent; + MEVENT hCurrentEvent = NS_GetCurrent((HANDLE)pHandle); switch (iCommand) { case 1: // forward message @@ -191,15 +191,14 @@ INT_PTR CTelegramProto::SvcExecMenu(WPARAM iCommand, LPARAM pHandle) break; case 2: // reactions - hCurrentEvent = NS_GetCurrent((HANDLE)pHandle); if (hCurrentEvent != -1) CReactionsDlg(this, hCurrentEvent).DoModal(); break; case 3: // reply - hCurrentEvent = NS_GetCurrent((HANDLE)pHandle); - // if (hCurrentEvent != -1) - // CReplyDlg(this, hCurrentEvent).DoModal(); + if (hCurrentEvent != -1) + if (auto *pDlg = NS_GetSrmm((HANDLE)pHandle)) + pDlg->SetQuoteEvent(hCurrentEvent); break; } return 0; -- cgit v1.2.3