summaryrefslogtreecommitdiff
path: root/protocols/WhatsAppWeb/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-04-22 16:54:19 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-04-22 16:54:19 +0300
commitfacec0fbfb54f51cb1b1fbb22c9d52c206ae6639 (patch)
tree7c35a199d4a81a98aa55ccaea751cff74723401c /protocols/WhatsAppWeb/src
parentbe650befc9af221dd8b85940e6919c3ef97bc13b (diff)
we don't have to wipe these data, one just need to start a client on smartphone
Diffstat (limited to 'protocols/WhatsAppWeb/src')
-rw-r--r--protocols/WhatsAppWeb/src/server.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/WhatsAppWeb/src/server.cpp b/protocols/WhatsAppWeb/src/server.cpp
index 183935661d..c4c4b96ad1 100644
--- a/protocols/WhatsAppWeb/src/server.cpp
+++ b/protocols/WhatsAppWeb/src/server.cpp
@@ -187,13 +187,13 @@ void WhatsAppProto::OnRestoreSession2(const JSONNode &root)
if (status != 200) {
debugLogA("Attempt to restore session failed with error %d", status);
- if (status == 401 || status == 419) {
- delSetting(DBKEY_ENC_KEY);
- delSetting(DBKEY_MAC_KEY);
- delSetting(DBKEY_CLIENT_ID);
- delSetting(DBKEY_CLIENT_TOKEN);
- delSetting(DBKEY_SERVER_TOKEN);
- }
+ // if (status == 401 || status == 419) {
+ // delSetting(DBKEY_ENC_KEY);
+ // delSetting(DBKEY_MAC_KEY);
+ // delSetting(DBKEY_CLIENT_ID);
+ // delSetting(DBKEY_CLIENT_TOKEN);
+ // delSetting(DBKEY_SERVER_TOKEN);
+ // }
ShutdownSession();
return;