diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-05-16 14:55:16 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-05-16 14:55:16 +0000 |
commit | eec9743cc90715180fec9b184ae343dc5083e780 (patch) | |
tree | ac804835491fdd565596864347afe9255b8a97ee /protocols/FacebookRM/src/proto.cpp | |
parent | 016efa8dd058f9af5a57a33a6541736ce710a5a7 (diff) |
Facebook:
- fixed getting login error message
- cleanup of close_chat method and related things
- added Poke support (contact menu)
- support for sending "Seen" info (add in db "MarkRead" (byte) with value "1")
- support for language specific fb errors (add in db "Locale" (string) with locale value ("en_US", "cs_CZ" etc.)
- mir_a2t_cp(..., CP_UTF8) changed to mir_utf8decodeT(...)
git-svn-id: http://svn.miranda-ng.org/main/trunk@4677 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 61d07d41b2..59c4261bc9 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -491,6 +491,21 @@ int FacebookProto::VisitFriendship(WPARAM wParam,LPARAM lParam) return 0;
}
+int FacebookProto::Poke(WPARAM wParam,LPARAM lParam)
+{
+ if (wParam == NULL || isOffline())
+ return 1;
+
+ HANDLE hContact = reinterpret_cast<HANDLE>(wParam);
+
+ mir_ptr<char> id = db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_ID);
+ if (id == NULL)
+ return 1;
+
+ ForkThread(&FacebookProto::SendPokeWorker, this, new std::string(id));
+ return 0;
+}
+
int FacebookProto::CancelFriendship(WPARAM wParam,LPARAM lParam)
{
if (wParam == NULL || isOffline())
|