diff options
author | George Hazan <ghazan@miranda.im> | 2020-12-23 21:03:01 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-12-23 21:03:01 +0300 |
commit | ed4141e5d48402b8b617e6ae360ae41464723b0c (patch) | |
tree | 2a2974512bef913df3ddbf619f0f881967997af6 /protocols/SkypeWeb/src/requests | |
parent | 16c0b34f73ad2c54defd9e2791bd8c15e27e35e0 (diff) |
SkypeWeb: history reader to use local time not to create time machine. Only fetching whole history shall use server side timestamps
Diffstat (limited to 'protocols/SkypeWeb/src/requests')
-rw-r--r-- | protocols/SkypeWeb/src/requests/history.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/requests/history.h b/protocols/SkypeWeb/src/requests/history.h index 6be005ae57..7c5baf6870 100644 --- a/protocols/SkypeWeb/src/requests/history.h +++ b/protocols/SkypeWeb/src/requests/history.h @@ -35,21 +35,22 @@ struct SyncHistoryFirstRequest : public AsyncHttpRequest struct GetHistoryRequest : public AsyncHttpRequest
{
- GetHistoryRequest(const char *username, int pageSize, LONGLONG timestamp) :
+ GetHistoryRequest(const char *username, int pageSize, LONGLONG timestamp, bool bOperative) :
AsyncHttpRequest(REQUEST_GET, HOST_DEFAULT, 0, &CSkypeProto::OnGetServerHistory)
{
m_szUrl.AppendFormat("/users/ME/conversations/%s/messages", mir_urlEncode(username).c_str());
+ if (bOperative)
+ pUserInfo = this;
+
this << INT_PARAM("startTime", timestamp) << INT_PARAM("pageSize", pageSize)
<< CHAR_PARAM("view", "msnp24Equivalent") << CHAR_PARAM("targetType", "Passport|Skype|Lync|Thread");
}
-};
-struct GetHistoryOnUrlRequest : public AsyncHttpRequest
-{
- GetHistoryOnUrlRequest(const char *url) :
+ GetHistoryRequest(const char *url, void *pInfo) :
AsyncHttpRequest(REQUEST_GET, HOST_DEFAULT, url, &CSkypeProto::OnGetServerHistory)
{
+ pUserInfo = pInfo;
}
};
|