summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-07-17 19:42:55 +0000
committerRobert Pösel <robyer@seznam.cz>2016-07-17 19:42:55 +0000
commit144d4abae7e3bbdd5c7e6afb9098f84ab443f475 (patch)
treee9eaed82fac22d3ab3d565c3018b91e53c7edc65 /protocols/FacebookRM/src/proto.cpp
parenta992047f2696936927f9b220592ee0edd030bc42 (diff)
Facebook: Greatly improve format of wall post's text
git-svn-id: http://svn.miranda-ng.org/main/trunk@17105 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index ed2125bed5..c5dbb60c2c 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -49,7 +49,7 @@ FacebookProto::FacebookProto(const char* proto_name, const TCHAR* username) :
// Load custom page prefix, if set
ptrT pagePrefix(getTStringA(FACEBOOK_KEY_PAGE_PREFIX));
- m_pagePrefix = (pagePrefix != NULL) ? _T2A(pagePrefix, CP_UTF8) : "\xF0\x9F\x93\x84"; // emoji :page_facing_up:
+ m_pagePrefix = (pagePrefix != NULL) ? _T2A(pagePrefix, CP_UTF8) : TEXT_EMOJI_PAGE;
if (m_tszDefaultGroup == NULL)
m_tszDefaultGroup = mir_tstrdup(_T("Facebook"));
@@ -638,6 +638,11 @@ int FacebookProto::OnPreCreateEvent(WPARAM, LPARAM lParam)
INT_PTR FacebookProto::CheckNewsfeeds(WPARAM, LPARAM)
{
if (!isOffline()) {
+ // If holding control, load all newsfeeds (not only newer since last check)
+ bool ctrlPressed = (GetKeyState(VK_CONTROL) & 0x8000) != 0;
+ if (ctrlPressed) {
+ facy.last_feeds_update_ = 0;
+ }
NotifyEvent(m_tszUserName, TranslateT("Loading wall posts..."), NULL, FACEBOOK_EVENT_OTHER);
ForkThread(&FacebookProto::ProcessFeeds, NULL);
}