summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-08-28 17:41:58 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-08-28 17:41:58 +0300
commitee9362920d1f0e3f7e6a76d15d957247f013cb8e (patch)
tree958591eadea101070d7368c3996c7062488ee152 /protocols/SkypeWeb/src
parent9787b1159e30b0facb115be36ee465ad75f48fef (diff)
fixes #4598 (SkypeWeb: Не открывается сессия сообщений и не появляется уведомление о новых сообщениях)
Diffstat (limited to 'protocols/SkypeWeb/src')
-rw-r--r--protocols/SkypeWeb/src/skype_history_sync.cpp6
-rw-r--r--protocols/SkypeWeb/src/skype_options.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp
index 3ce3d1c028..146b925ba2 100644
--- a/protocols/SkypeWeb/src/skype_history_sync.cpp
+++ b/protocols/SkypeWeb/src/skype_history_sync.cpp
@@ -32,7 +32,8 @@ void CSkypeProto::OnGetServerHistory(MHttpResponse *response, AsyncHttpRequest *
int totalCount = metadata["totalCount"].as_int();
std::string syncState = metadata["syncState"].as_string();
- bool bUseLocalTime = !bUseServerTime && pRequest->pUserInfo != 0;
+ bool bOperative = pRequest->pUserInfo != 0;
+ bool bUseLocalTime = !bUseServerTime && bOperative;
bool bSetLastTime = false;
int64_t lastMsgTime = 0; // max timestamp on this page
@@ -64,7 +65,8 @@ void CSkypeProto::OnGetServerHistory(MHttpResponse *response, AsyncHttpRequest *
}
dbei.flags = DBEF_UTF;
- dbei.flags |= DBEF_READ;
+ if (!bOperative)
+ dbei.flags |= DBEF_READ;
if (IsMe(szFrom))
dbei.flags |= DBEF_SENT;
diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp
index 84c1c04966..f5d3f5dee5 100644
--- a/protocols/SkypeWeb/src/skype_options.cpp
+++ b/protocols/SkypeWeb/src/skype_options.cpp
@@ -45,8 +45,6 @@ public:
bool OnInitDialog() override
{
- CSkypeDlgBase::OnInitDialog();
-
m_skypename.SetTextA(ptrA(m_proto->getStringA(SKYPE_SETTINGS_ID)));
m_password.SetTextA(pass_ptrA(m_proto->getStringA("Password")));
m_place.Enable(!m_proto->bUseHostnameAsPlace);