summaryrefslogtreecommitdiff
path: root/protocols/Telegram
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-07-25 13:11:06 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-07-25 13:11:06 +0300
commit69581b8648e0c2fe96f454455763359ebeeba46a (patch)
tree524a4088b16ad99993b4ca9994ccc55b554c49db /protocols/Telegram
parent1acef408decb2450ce8cea52b37674f1972b9f82 (diff)
SRMM: automatic RTF log redraw on event's change/removal
Diffstat (limited to 'protocols/Telegram')
-rw-r--r--protocols/Telegram/src/avatars.cpp2
-rw-r--r--protocols/Telegram/src/main.cpp2
-rw-r--r--protocols/Telegram/src/stdafx.h2
3 files changed, 1 insertions, 5 deletions
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<CTelegramProto>
{
CMPlugin();
- HANDLE m_hIcon, m_hevEventEdited;
+ HANDLE m_hIcon;
int Load() override;
};