diff options
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index c5ecfea06d..03fd9c722e 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -628,3 +628,19 @@ void FacebookProto::OpenUrl(std::string url) ptrT data = mir_utf8decodeT(url.c_str());
CallService(MS_UTILS_OPENURL, (WPARAM)OUF_TCHAR, (LPARAM)data);
}
+
+void FacebookProto::ReadNotificationWorker(void *p)
+{
+ if (p == NULL)
+ return;
+
+ std::string *id = static_cast<std::string*>(p);
+
+ std::string data = "seen=0&asyncSignal=&__dyn=&__req=a&alert_ids%5B0%5D=" + *id;
+ data += "&fb_dtsg=" + (facy.dtsg_.length() ? facy.dtsg_ : "0");
+ data += "&__user=" + facy.self_.user_id;
+
+ facy.flap(FACEBOOK_REQUEST_NOTIFICATIONS_READ, NULL, &data);
+
+ delete p;
+}
\ No newline at end of file |