diff options
author | George Hazan <george.hazan@gmail.com> | 2013-05-16 15:10:44 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-05-16 15:10:44 +0000 |
commit | fa02e76e325bfec6ca2737fcb086cab4e3de3cba (patch) | |
tree | 8d25bfaf885fb649151cbfd9a08d3417a901e019 /protocols/FacebookRM/src/messages.cpp | |
parent | 2e4abd268c71f15bcf73c49a5005f128ffd8ee96 (diff) |
git-svn-id: http://svn.miranda-ng.org/main/trunk@4681 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/messages.cpp')
-rw-r--r-- | protocols/FacebookRM/src/messages.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/messages.cpp b/protocols/FacebookRM/src/messages.cpp index 29fbbcdcca..14c6c3313d 100644 --- a/protocols/FacebookRM/src/messages.cpp +++ b/protocols/FacebookRM/src/messages.cpp @@ -174,7 +174,7 @@ void FacebookProto::ReadMessageWorker(void *p) if (!db_get_b(NULL, m_szModuleName, FACEBOOK_KEY_MARK_READ, 0)) {
// old variant - no seen info updated
- mir_ptr<char> id = db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_ID);
+ MCBuf id( db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_ID));
if (id == NULL) return;
std::string data = "action=chatMarkRead";
@@ -185,7 +185,7 @@ void FacebookProto::ReadMessageWorker(void *p) http::response resp = facy.flap(FACEBOOK_REQUEST_ASYNC, &data);
} else {
// new variant - with seen info
- mir_ptr<char> mid = db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_MESSAGE_ID);
+ MCBuf mid( db_get_sa(hContact, m_szModuleName, FACEBOOK_KEY_MESSAGE_ID));
if (mid == NULL) return;
std::string data = "ids[" + std::string(mid) + "]=true";
|