summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-02-12 01:58:23 +0000
committerRobert Pösel <robyer@seznam.cz>2016-02-12 01:58:23 +0000
commitf49eebc1d4c1278286afff0996a28ff8b6a3ebdf (patch)
tree88c557f1282e99f76e8d85654472070de3d42ed9 /protocols/FacebookRM/src/proto.cpp
parent33060f2573e523ed0895c17eb649acb9ee0f9f2f (diff)
Facebook: Update some requests format, changes for stickers and new support for sending stickers (send message "[[sticker:STICKER_ID]]")
git-svn-id: http://svn.miranda-ng.org/main/trunk@16272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 73b534eded..9fed01e483 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -924,12 +924,16 @@ void FacebookProto::ReadNotificationWorker(void *p)
return;
}
- std::string data = "seen=0&asyncSignal=&__dyn=&__rev=&__req=&alert_ids%5B0%5D=" + utils::url::encode(*id);
+ std::string data = "alert_ids%5B0%5D=" + utils::url::encode(*id);
+ data += "&seen=true";
data += "&fb_dtsg=" + facy.dtsg_;
data += "&__user=" + facy.self_.user_id;
data += "&ttstamp=" + facy.ttstamp_;
+ data += "&__dyn=" + facy.__dyn();
+ data += "&__req=" + facy.__req();
+ data += "&__rev=" + facy.__rev();
- facy.flap(REQUEST_NOTIFICATIONS_READ, NULL, &data);
+ facy.flap(REQUEST_NOTIFICATIONS_READ, &data); // NOTE: Request revised 11.2.2016
delete id;
}