summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/res/resource.rc14
-rw-r--r--protocols/Telegram/src/menus.cpp51
-rw-r--r--protocols/Telegram/src/resource.h6
3 files changed, 3 insertions, 68 deletions
diff --git a/protocols/Telegram/res/resource.rc b/protocols/Telegram/res/resource.rc
index ac3a5c5e03..2dea61f66b 100644
--- a/protocols/Telegram/res/resource.rc
+++ b/protocols/Telegram/res/resource.rc
@@ -162,20 +162,6 @@ BEGIN
PUSHBUTTON "Cancel",IDCANCEL,158,22,50,14
END
-IDD_REPLY DIALOGEX 0, 0, 414, 233
-STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | DS_CENTER | WS_POPUP | WS_CAPTION | WS_SYSMENU
-CAPTION "Reply to a message"
-FONT 8, "MS Shell Dlg", 400, 0, 0x1
-BEGIN
- CONTROL "",IDC_REPLYTO,"NewstoryList",WS_BORDER | WS_TABSTOP | 0x80,7,18,400,85
- LTEXT "In reply to:",IDC_STATIC,7,4,400,9
- CONTROL "",IDC_TEXT,"RichEdit50W",WS_BORDER | WS_TABSTOP | 0x80,7,105,400,103
- CONTROL "",IDC_ATTACH,"MButtonClass",WS_TABSTOP,7,212,17,14
- DEFPUSHBUTTON "OK",IDOK,301,212,50,14
- PUSHBUTTON "Cancel",IDCANCEL,357,212,50,14
-END
-
-
/////////////////////////////////////////////////////////////////////////////
//
// Icon
diff --git a/protocols/Telegram/src/menus.cpp b/protocols/Telegram/src/menus.cpp
index 742ca9df91..cd77cbe396 100644
--- a/protocols/Telegram/src/menus.cpp
+++ b/protocols/Telegram/src/menus.cpp
@@ -138,53 +138,6 @@ public:
};
/////////////////////////////////////////////////////////////////////////////////////////
-// Dialog for reply to a message
-
-class CReplyDlg : public CTelegramDlgBase
-{
- MEVENT m_hEvent;
- TG_USER *m_pUser;
-
- CCtrlEdit edtText;
- CCtrlButton btnOk;
- CCtrlMButton btnFile;
-
-public:
- CReplyDlg(CTelegramProto *ppro, MEVENT hEvent) :
- CTelegramDlgBase(ppro, IDD_REPLY),
- m_hEvent(hEvent),
- btnOk(this, IDOK),
- edtText(this, IDC_TEXT),
- btnFile(this, IDC_ATTACH, IcoLib_GetIcon("attach"), LPGEN("Attach file"))
- {
- m_pUser = ppro->FindUser(ppro->GetId(db_event_getContact(hEvent)));
- }
-
- bool OnInitDialog() override
- {
- ::SendDlgItemMessage(m_hwnd, IDC_REPLYTO, NSM_ADDEVENT, m_proto->GetRealContact(m_pUser), m_hEvent);
- return true;
- }
-
- bool OnApply() override
- {
- DB::EventInfo dbei(m_hEvent, false);
-
- ptrW wszText(edtText.GetText());
-
- auto pContent = TD::make_object<TD::inputMessageText>();
- pContent->text_ = formatBbcodes(T2Utf(wszText));
-
- auto *pMessage = new TD::sendMessage();
- pMessage->chat_id_ = m_pUser->chatId;
- pMessage->input_message_content_ = std::move(pContent);
- pMessage->reply_to_message_id_ = dbei2id(dbei);
- m_proto->SendQuery(pMessage, &CTelegramProto::OnSendMessage);
- return true;
- }
-};
-
-/////////////////////////////////////////////////////////////////////////////////////////
// Dialog for sending reaction
class CReactionsDlg : public CTelegramDlgBase
@@ -245,8 +198,8 @@ INT_PTR CTelegramProto::SvcExecMenu(WPARAM iCommand, LPARAM pHandle)
case 3: // reply
hCurrentEvent = NS_GetCurrent((HANDLE)pHandle);
- if (hCurrentEvent != -1)
- CReplyDlg(this, hCurrentEvent).DoModal();
+ // if (hCurrentEvent != -1)
+ // CReplyDlg(this, hCurrentEvent).DoModal();
break;
}
return 0;
diff --git a/protocols/Telegram/src/resource.h b/protocols/Telegram/src/resource.h
index 9838a6cb40..ed68daa9f4 100644
--- a/protocols/Telegram/src/resource.h
+++ b/protocols/Telegram/src/resource.h
@@ -14,8 +14,7 @@
#define IDD_REACTIONS 109
#define IDI_BOT 110
#define IDI_REPLY 111
-#define IDD_REPLY 112
-#define IDD_OPTIONS_SESSIONS 113
+#define IDD_OPTIONS_SESSIONS 112
#define IDC_PHONE 1001
#define IDC_DEFGROUP 1002
#define IDC_HIDECHATS 1003
@@ -36,9 +35,6 @@
#define IDC_CLIST 1016
#define IDC_COMPRESS_FILES 1017
#define IDC_REACTIONS 1018
-#define IDC_REPLYTO 1019
-#define IDC_TEXT 1020
-#define IDC_ATTACH 1021
#define IDC_SESSIONS 1023
#define IDC_IPADDRESS 1024
#define IDC_SOFTWARE 1025