diff options
author | Robert Pösel <robyer@seznam.cz> | 2012-05-25 18:11:53 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2012-05-25 18:11:53 +0000 |
commit | 1aa7fb19562f9462311e55dc0b9a7fac18c31180 (patch) | |
tree | abe836fdcac52cf7291cec5a682ce414ebab176d /protocols/FacebookRM/messages.cpp | |
parent | e45307525555ee23035c0d87fbac3ed8ce5a31e8 (diff) |
Updated Facebook RM
git-svn-id: http://svn.miranda-ng.org/main/trunk@176 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/messages.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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<send_typing*>(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
|