diff options
| author | George Hazan <george.hazan@gmail.com> | 2023-11-21 12:14:51 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2023-11-21 12:14:51 +0300 |
| commit | 176cbd229f87889d2467269e8f0c7a290e073e0b (patch) | |
| tree | 895803fd87a9610311dca2c7b4e400650b6673d2 | |
| parent | 2827fd4f5ff84d50e3c490248e145d3762e1f901 (diff) | |
fixes #3942 (Telegram: невозможно отправить файл оффлайн-контакту перетаскиванием в поле ввода)
| -rw-r--r-- | protocols/Telegram/src/proto.cpp | 2 | ||||
| -rw-r--r-- | src/mir_app/src/file.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index f04e16f4e1..6997ff8374 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -321,7 +321,7 @@ INT_PTR CTelegramProto::GetCaps(int type, MCONTACT) return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY; case PFLAGNUM_4: - return PF4_NOCUSTOMAUTH | PF4_FORCEAUTH | PF4_NOAUTHDENYREASON | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID; + return PF4_NOCUSTOMAUTH | PF4_FORCEAUTH | PF4_OFFLINEFILES | PF4_NOAUTHDENYREASON | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID; case PFLAGNUM_5: return PF2_SHORTAWAY | PF2_LONGAWAY; diff --git a/src/mir_app/src/file.cpp b/src/mir_app/src/file.cpp index db586336c3..7cde57d9f4 100644 --- a/src/mir_app/src/file.cpp +++ b/src/mir_app/src/file.cpp @@ -176,6 +176,8 @@ static int SRFileModulesLoaded(WPARAM, LPARAM) Srmm_AddButton(&bbd, &g_plugin); HookEvent(ME_MSG_BUTTONPRESSED, OnToolbarButtonPressed); + HookEvent(ME_CLIST_PREBUILDCONTACTMENU, SRFilePreBuildMenu); + HookEvent(ME_PROTO_ACK, SRFileProtoAck); RemoveUnreadFileEvents(); return 0; @@ -344,8 +346,6 @@ int LoadSendRecvFileModule(void) HookEvent(ME_SYSTEM_PRESHUTDOWN, SRFilePreShutdown); HookEvent(ME_OPT_INITIALISE, SRFileOptInitialise); HookEvent(ME_DB_EVENT_DELETED, SRFileEventDeleted); - HookEvent(ME_CLIST_PREBUILDCONTACTMENU, SRFilePreBuildMenu); - HookEvent(ME_PROTO_ACK, SRFileProtoAck); hDlgSucceeded = CreateHookableEvent(ME_FILEDLG_SUCCEEDED); hDlgCanceled = CreateHookableEvent(ME_FILEDLG_CANCELED); |
