From 69581b8648e0c2fe96f454455763359ebeeba46a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 25 Jul 2023 13:11:06 +0300 Subject: SRMM: automatic RTF log redraw on event's change/removal --- protocols/Telegram/src/avatars.cpp | 2 -- protocols/Telegram/src/main.cpp | 2 -- protocols/Telegram/src/stdafx.h | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) (limited to 'protocols/Telegram') diff --git a/protocols/Telegram/src/avatars.cpp b/protocols/Telegram/src/avatars.cpp index 4a08866989..48236fd9e7 100644 --- a/protocols/Telegram/src/avatars.cpp +++ b/protocols/Telegram/src/avatars.cpp @@ -204,8 +204,6 @@ void CTelegramProto::ProcessFile(TD::updateFile *pObj) F->ofd->ResetFileName(wszFullName); // resulting ofd->wszPath may differ from wszFullName MoveFileW(wszExistingFile, F->ofd->wszPath); - NotifyEventHooks(g_plugin.m_hevEventEdited, 0, F->ofd->hDbEvent); - F->ofd->Finish(); } diff --git a/protocols/Telegram/src/main.cpp b/protocols/Telegram/src/main.cpp index 9ed452ad48..32206a9b6c 100644 --- a/protocols/Telegram/src/main.cpp +++ b/protocols/Telegram/src/main.cpp @@ -49,7 +49,5 @@ int CMPlugin::Load() registerIcon("Protocols/Telegram", iconList, "tg"); m_hIcon = ExtraIcon_RegisterIcolib("tg_premium", LPGEN("Telegram Premium user"), getIconHandle(IDI_PREMIUM)); - - m_hevEventEdited = CreateHookableEvent(ME_DB_EVENT_EDITED); return 0; } diff --git a/protocols/Telegram/src/stdafx.h b/protocols/Telegram/src/stdafx.h index dad748c7cd..f6e7100f53 100644 --- a/protocols/Telegram/src/stdafx.h +++ b/protocols/Telegram/src/stdafx.h @@ -49,7 +49,7 @@ struct CMPlugin : public ACCPROTOPLUGIN { CMPlugin(); - HANDLE m_hIcon, m_hevEventEdited; + HANDLE m_hIcon; int Load() override; }; -- cgit v1.2.3