diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-09-01 01:09:56 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-09-01 01:09:56 +0000 |
commit | 669c32164d32129e6226f9f586f9ebfebd6fa9c7 (patch) | |
tree | 0f8b8ff348cd0f544d17c00211b81449ed1ebbbb /protocols/FacebookRM/src/process.cpp | |
parent | 2d091ed700332dd73d94353be44b9e1d8c22aeca (diff) |
Facebook: Add support for forgotten PHONE_CALL and cleanup code
git-svn-id: http://svn.miranda-ng.org/main/trunk@17233 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index 9e47f091ee..4a64b638db 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -595,10 +595,12 @@ void FacebookProto::LoadHistory(void *pParam) DBEVENTINFO dbei = { 0 }; dbei.cbSize = sizeof(dbei); - if (msg.type == CALL) + if (msg.type == MESSAGE) + dbei.eventType = EVENTTYPE_MESSAGE; + else if (msg.type == VIDEO_CALL || msg.type == PHONE_CALL) dbei.eventType = FACEBOOK_EVENTTYPE_CALL; else - dbei.eventType = EVENTTYPE_MESSAGE; + dbei.eventType = EVENTTYPE_URL; // FIXME: Use better and specific type for our other event types. dbei.flags = DBEF_UTF; @@ -1074,7 +1076,7 @@ void FacebookProto::ReceiveMessages(std::vector<facebook_message> &messages, boo if (msg.type == MESSAGE) dbei.eventType = EVENTTYPE_MESSAGE; - else if (msg.type == CALL) + else if (msg.type == VIDEO_CALL || msg.type == PHONE_CALL) dbei.eventType = FACEBOOK_EVENTTYPE_CALL; else dbei.eventType = EVENTTYPE_URL; // FIXME: Use better and specific type for our other event types. |