diff options
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r-- | protocols/FacebookRM/src/proto.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index e2fde204d4..500fac2d50 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -898,15 +898,8 @@ void FacebookProto::ReadNotificationWorker(void *p) return; std::string *id = (std::string*)p; - - if (isOffline()) { - delete id; - return; - } - - HttpRequest *request = new MarkNotificationReadRequest(&facy, id->c_str()); - facy.sendRequest(request); - + if (!isOffline()) + facy.sendRequest(facy.markNotificationReadRequest(id->c_str())); delete id; } |