diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-02-14 16:30:24 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-02-14 16:30:24 +0000 |
commit | 638fdb5d710a10ef611f518303823c5b005ce3e4 (patch) | |
tree | 522de2a73b2c622e99711759e8df760ce2bab6c7 /protocols/FacebookRM/src/process.cpp | |
parent | f4f4eccf331d50eaf3c1c29cfd3e74308901137a (diff) |
Facebook: Fix (hopefully) for not receiving messages sometimes; some tiny other fixes
This ancient "bug" was here since beginning of Facebook RM. But it's not a bug, it just Facebook return wrong sequence number which then causes this.
git-svn-id: http://svn.miranda-ng.org/main/trunk@12103 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/process.cpp')
-rw-r--r-- | protocols/FacebookRM/src/process.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp index e6c2e6a1ac..cb2e5ab9de 100644 --- a/protocols/FacebookRM/src/process.cpp +++ b/protocols/FacebookRM/src/process.cpp @@ -891,7 +891,8 @@ void FacebookProto::ShowNotifications() { if (notification != NULL && !notification->seen) { debugLogA(" Showing popup for notification: %s", notification->text.c_str()); ptrT szText(mir_utf8decodeT(notification->text.c_str())); - notification->hWndPopup = NotifyEvent(m_tszUserName, szText, ContactIDToHContact(notification->user_id), FACEBOOK_EVENT_NOTIFICATION, ¬ification->link, ¬ification->id); + MCONTACT hContact = (notification->user_id.empty() ? NULL : ContactIDToHContact(notification->user_id)); + notification->hWndPopup = NotifyEvent(m_tszUserName, szText, hContact, FACEBOOK_EVENT_NOTIFICATION, ¬ification->link, ¬ification->id); notification->seen = true; } } |