summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/process.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-09-19 15:42:26 +0000
committerRobert Pösel <robyer@seznam.cz>2014-09-19 15:42:26 +0000
commit4279c9e641b798b68eb4d520228fc37445264c78 (patch)
treebfae40114dbdb5e7cf826c3e1f8c42afcf097be4 /protocols/FacebookRM/src/process.cpp
parent9ed60637b814fb9303b4bebefacf8e88e5b52383 (diff)
Facebook: Receive info (message) about missed video call
git-svn-id: http://svn.miranda-ng.org/main/trunk@10520 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r--protocols/FacebookRM/src/process.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index b10b9165b7..a2934dd1b3 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -706,7 +706,7 @@ void FacebookProto::ReceiveMessages(std::vector<facebook_message*> messages, boo
if (!tid || strcmp(tid, messages[i]->thread_id.c_str()))
setString(hContact, FACEBOOK_KEY_TID, messages[i]->thread_id.c_str());
- if (messages[i]->isIncoming && messages[i]->isUnread) {
+ if (messages[i]->isIncoming && messages[i]->isUnread && messages[i]->type == MESSAGE) {
PROTORECVEVENT recv = { 0 };
recv.flags = PREF_UTF;
recv.szMessage = const_cast<char*>(messages[i]->message_text.c_str());
@@ -715,7 +715,12 @@ void FacebookProto::ReceiveMessages(std::vector<facebook_message*> messages, boo
} else {
DBEVENTINFO dbei = { 0 };
dbei.cbSize = sizeof(dbei);
- dbei.eventType = EVENTTYPE_MESSAGE;
+
+ if (messages[i]->type == CALL)
+ dbei.eventType = FACEBOOK_EVENTTYPE_CALL;
+ else
+ dbei.eventType = EVENTTYPE_MESSAGE;
+
dbei.flags = DBEF_UTF;
if (!messages[i]->isIncoming)