From 1aa7fb19562f9462311e55dc0b9a7fac18c31180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Fri, 25 May 2012 18:11:53 +0000 Subject: Updated Facebook RM git-svn-id: http://svn.miranda-ng.org/main/trunk@176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/messages.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/messages.cpp') diff --git a/protocols/FacebookRM/messages.cpp b/protocols/FacebookRM/messages.cpp index d8fd7e6d58..072ae88b4f 100644 --- a/protocols/FacebookRM/messages.cpp +++ b/protocols/FacebookRM/messages.cpp @@ -114,8 +114,9 @@ void FacebookProto::SendTypingWorker(void *p) send_typing *typing = static_cast(p); - // Dont send typing notifications to contacts, that are offline - if ( DBGetContactSettingWord(typing->hContact,m_szModuleName,"Status", 0) == ID_STATUS_OFFLINE ) + // Dont send typing notifications to contacts, that are offline or not friends + if ( DBGetContactSettingWord(typing->hContact,m_szModuleName,"Status", 0) == ID_STATUS_OFFLINE + || DBGetContactSettingByte(typing->hContact, m_szModuleName, FACEBOOK_KEY_CONTACT_TYPE, 0) != FACEBOOK_CONTACT_FRIEND) return; // TODO RM: maybe better send typing optimalization -- cgit v1.2.3