From 61f7c0cbedeed594973f2e555dba2c8febc9fae2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 10 Jul 2014 18:38:33 +0000 Subject: typing notify handler in MetaContacts considered useless git-svn-id: http://svn.miranda-ng.org/main/trunk@9760 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/metacontacts/meta_services.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src') diff --git a/src/modules/metacontacts/meta_services.cpp b/src/modules/metacontacts/meta_services.cpp index 0f0997ada4..5c28a2bf66 100644 --- a/src/modules/metacontacts/meta_services.cpp +++ b/src/modules/metacontacts/meta_services.cpp @@ -515,26 +515,6 @@ static INT_PTR Meta_UserIsTyping(WPARAM hMeta, LPARAM lParam) return 0; } -/** Call when we want to receive a user is typing message -* -* @param wParam HANDLE to the contact that is typing or not -* @param lParam either PROTOTYPE_SELFTYPING_ON or PROTOTYPE_SELFTYPING_OFF -*/ - -static int Meta_ContactIsTyping(WPARAM hContact, LPARAM lParam) -{ - if (!db_mc_isEnabled()) - return 0; - - DBCachedContact *cc = currDb->m_cache->GetCachedContact(hContact); - if (cc != NULL && cc->IsSub()) { - CallService(MS_PROTO_CONTACTISTYPING, cc->parentID, lParam); - return 1; - } - - return 0; -} - /** Called when user info is about to be shown * * Returns 1 to stop event processing and opens page for metacontact default contact (returning 1 to stop it doesn't work!) @@ -912,7 +892,6 @@ void Meta_InitServices() // hook other module events we need HookEvent(ME_PROTO_ACK, Meta_HandleACK); - HookEvent(ME_PROTO_CONTACTISTYPING, Meta_ContactIsTyping); HookEvent(ME_DB_CONTACT_DELETED, Meta_ContactDeleted); HookEvent(ME_DB_CONTACT_SETTINGCHANGED, Meta_SettingChanged); HookEvent(ME_OPT_INITIALISE, Meta_OptInit); -- cgit v1.2.3