diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-03-09 08:32:54 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-03-09 08:32:54 +0000 |
commit | 90e99f1002599427b8373e6477073a9c8f5832c7 (patch) | |
tree | e406240e375c1106014704fa20a3872916e9bbbd /protocols/FacebookRM/src/proto.cpp | |
parent | 685bdd6028b2d01d10168b06150983e7bd8e126a (diff) |
Facebook: Add contact menu item to open "Conversation history" on website
git-svn-id: http://svn.miranda-ng.org/main/trunk@8488 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 10e61fc840..7ec20b4790 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -551,6 +551,26 @@ INT_PTR FacebookProto::VisitFriendship(WPARAM wParam,LPARAM lParam) return 0;
}
+INT_PTR FacebookProto::VisitConversation(WPARAM wParam, LPARAM lParam)
+{
+ MCONTACT hContact = MCONTACT(wParam);
+
+ if (wParam == 0 || !IsMyContact(hContact, true))
+ return 1;
+
+ std::string url = FACEBOOK_URL_CONVERSATION;
+
+ if (isChatRoom(hContact)) {
+ url += "conversation-";
+ url += ptrA(getStringA(hContact, FACEBOOK_KEY_TID));
+ } else {
+ url += ptrA(getStringA(hContact, FACEBOOK_KEY_ID));
+ }
+
+ OpenUrl(url);
+ return 0;
+}
+
INT_PTR FacebookProto::Poke(WPARAM wParam,LPARAM lParam)
{
if (wParam == NULL || isOffline())
|