diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-24 19:29:58 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-24 19:29:58 +0000 |
commit | 8e891173c74ceaa0964f32be247f380fd5f8bcd1 (patch) | |
tree | ae04674f66456d3c8470a754c867d319f9ccd26b | |
parent | cdc2824d17f00ddfdb21c5bc43ede1673c70f2ec (diff) |
SkypeWeb: fix file permissions
git-svn-id: http://svn.miranda-ng.org/main/trunk@16334 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/SkypeWeb/src/requests/asm/files.h | 5 | ||||
-rw-r--r-- | protocols/SkypeWeb/src/skype_proto.cpp | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/protocols/SkypeWeb/src/requests/asm/files.h b/protocols/SkypeWeb/src/requests/asm/files.h index 5a679e5e0a..f9846c23b3 100644 --- a/protocols/SkypeWeb/src/requests/asm/files.h +++ b/protocols/SkypeWeb/src/requests/asm/files.h @@ -11,11 +11,10 @@ public: << CHAR_VALUE("Authorization", CMStringA(::FORMAT, "skype_token %s", li.api.szToken))
<< CHAR_VALUE("Content-Type", "text/json");
- JSONNode node, jPermissions, jPermission(JSON_ARRAY), jReadPerm(JSON_STRING);
+ JSONNode node, jPermissions, jPermission(JSON_ARRAY);
jPermissions.set_name("permissions");
jPermission.set_name(szContact);
- jReadPerm = "read";
- jPermission << jReadPerm;
+ jPermission << JSONNode("", "read");
jPermissions << jPermission;
node << JSONNode("type", "sharing/file") << JSONNode("filename", szFileName) << jPermissions;
diff --git a/protocols/SkypeWeb/src/skype_proto.cpp b/protocols/SkypeWeb/src/skype_proto.cpp index 8a99ced993..d354234840 100644 --- a/protocols/SkypeWeb/src/skype_proto.cpp +++ b/protocols/SkypeWeb/src/skype_proto.cpp @@ -103,9 +103,9 @@ DWORD_PTR CSkypeProto::GetCaps(int type, MCONTACT) case PFLAGNUM_3:
return PF2_ONLINE | PF2_INVISIBLE | PF2_SHORTAWAY | PF2_HEAVYDND;
case PFLAGNUM_4:
- return PF4_FORCEADDED | PF4_NOAUTHDENYREASON | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_IMSENDOFFLINE;
+ return PF4_FORCEADDED | PF4_NOAUTHDENYREASON | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_IMSENDOFFLINE | PF4_OFFLINEFILES;
case PFLAG_UNIQUEIDTEXT:
- return (INT_PTR)"Skypename";
+ return (DWORD_PTR)"Skypename";
case PFLAG_UNIQUEIDSETTING:
return (DWORD_PTR)SKYPE_SETTINGS_ID;
}
|