summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-05-29 13:19:54 +0000
committerRobert Pösel <robyer@seznam.cz>2014-05-29 13:19:54 +0000
commit173d82c142334fec7d45d3dd170bdaa81d11cc8e (patch)
treecb3dc94e03cac699e7803bcd217cdbfffbff7b91 /protocols/FacebookRM/src/proto.cpp
parent18ddcdba70b8140905168cbf610906acb08e7037 (diff)
Facebook: Added option for loading messages on opening message window; version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@9341 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 4880f4c7c2..d97aa419e1 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -535,6 +535,10 @@ int FacebookProto::OnProcessSrmmEvent(WPARAM, LPARAM lParam)
MessageWindowEventData *event = (MessageWindowEventData *)lParam;
if (event->uType == MSG_WINDOW_EVT_OPEN) {
+ // Check if we have enabled loading messages on open window
+ if (!getBool(FACEBOOK_KEY_MESSAGES_ON_OPEN, DEFAULT_MESSAGES_ON_OPEN))
+ return 0;
+
// Load last messages for this contact
ForkThread(&FacebookProto::LoadLastMessages, new MCONTACT(event->hContact));
}