diff options
author | George Hazan <george.hazan@gmail.com> | 2016-02-01 08:49:11 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-02-01 08:49:11 +0000 |
commit | e1b171840899382e773c89b21e0510e9eddd95b0 (patch) | |
tree | c6775a84b90d41b8f8ac19b662d28eb65d484dd3 /protocols/WhatsApp/src/proto.cpp | |
parent | 5d99a5875b9968bc684ec1c051372296d3fadec2 (diff) |
same fix for WhatsAppProto - not to create main menu copies
git-svn-id: http://svn.miranda-ng.org/main/trunk@16205 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r-- | protocols/WhatsApp/src/proto.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp index b4cb2bf683..75ff99c887 100644 --- a/protocols/WhatsApp/src/proto.cpp +++ b/protocols/WhatsApp/src/proto.cpp @@ -67,7 +67,12 @@ WhatsAppProto::~WhatsAppProto() int WhatsAppProto::OnEvent(PROTOEVENTTYPE evType, WPARAM wParam, LPARAM lParam)
{
- if (evType == EV_PROTO_ONLOAD) {
+ switch (evType) {
+ case EV_PROTO_ONMENU:
+ InitMenu();
+ break;
+
+ case EV_PROTO_ONLOAD:
// Register group chat
GCREGISTER gcr = { sizeof(gcr) };
gcr.dwFlags = GC_TYPNOTIF | GC_CHANMGR;
@@ -78,6 +83,7 @@ int WhatsAppProto::OnEvent(PROTOEVENTTYPE evType, WPARAM wParam, LPARAM lParam) HookProtoEvent(ME_GC_EVENT, &WhatsAppProto::onGroupChatEvent);
HookProtoEvent(ME_GC_BUILDMENU, &WhatsAppProto::OnChatMenu);
HookProtoEvent(ME_USERINFO_INITIALISE, &WhatsAppProto::OnUserInfo);
+ break;
}
return TRUE;
}
|