diff options
author | Robert Pösel <robyer@seznam.cz> | 2016-03-25 00:38:54 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2016-03-25 00:38:54 +0000 |
commit | 68e1a7d81c92574eaf7b95f37879507c2a8b6532 (patch) | |
tree | 18b37bb40a3ee8fab170f6fe5a8b3867486c03d1 /protocols/FacebookRM/src/process.cpp | |
parent | 79412831126e49d990a44506af1ae69f78797d6c (diff) |
Facebook: Fix receiving messages (part I, chats and attachments doesn't work yet)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16540 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index eb64a99f8f..a1f5938fee 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -979,7 +979,7 @@ void FacebookProto::ReceiveMessages(std::vector<facebook_message*> messages, boo // Save TID if not exists already ptrA tid(getStringA(hContact, FACEBOOK_KEY_TID)); - if (!tid || mir_strcmp(tid, messages[i]->thread_id.c_str())) + if ((!tid || mir_strcmp(tid, messages[i]->thread_id.c_str())) && !messages[i]->thread_id.empty()) setString(hContact, FACEBOOK_KEY_TID, messages[i]->thread_id.c_str()); if (messages[i]->isIncoming && messages[i]->isUnread && messages[i]->type == MESSAGE) { |