diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-29 12:02:39 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-29 12:02:39 +0000 |
commit | 837ba88833d864c06ee5d6110a570387a1f37d48 (patch) | |
tree | 722331fe8d20c8e50fee0d2a66c94ab152f64b91 /plugins/!NotAdopted/Skype/skype.c | |
parent | 4579351044c7c214e44c35816a9ac0934b7ecdf4 (diff) |
Skype: updated to the latest sources
git-svn-id: http://svn.miranda-ng.org/main/trunk@1240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/Skype/skype.c')
-rw-r--r-- | plugins/!NotAdopted/Skype/skype.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/!NotAdopted/Skype/skype.c b/plugins/!NotAdopted/Skype/skype.c index 1aea600d3f..ea35153860 100644 --- a/plugins/!NotAdopted/Skype/skype.c +++ b/plugins/!NotAdopted/Skype/skype.c @@ -799,7 +799,7 @@ void __cdecl SkypeSystemInit(char *dummy) { SkypeSend ("CREATE APPLICATION libpurple_typing");
testfor ("CREATE APPLICATION libpurple_typing", 2000);
}
- if (protocol>=5) {
+ if (protocol>=5 || bIsImoproxy) {
SearchUsersWaitingMyAuthorization(NULL);
if (DBGetContactSettingByte(NULL, SKYPE_PROTONAME, "UseGroupchat", 0))
SearchRecentChats(NULL);
@@ -1127,6 +1127,11 @@ void FetchMessageThread(fetchmsg_arg *pargs) { if (ci.pszVal) miranda_sys_free (ci.pszVal);
}
free_nonutf_tchar_string((void*)gcd.ptszID);
+ if (!args.bDontMarkSeen)
+ {
+ MsgList_Add (pre.lParam, INVALID_HANDLE_VALUE);
+ SkypeSend("SET %s %s SEEN", cmdMessage, args.msgnum);
+ }
__leave;
}
if (!strcmp(type,"LEFT") || (bAddedMembers = strcmp(type,"ADDEDMEMBERS")==0))
@@ -1165,7 +1170,7 @@ void FetchMessageThread(fetchmsg_arg *pargs) { if (!CallService(MS_CONTACT_GETCONTACTINFO,0,(LPARAM)&ci)) gce.ptszNick=ci.pszVal;
else gce.ptszNick=gce.ptszUID;
- CallService(MS_GC_EVENT, 0, (LPARAM)&gce);
+ CallServiceSync(MS_GC_EVENT, 0, (LPARAM)&gce);
free_nonutf_tchar_string((void*)gce.ptszUID);
if (ci.pszVal) miranda_sys_free (ci.pszVal);
}
@@ -3431,7 +3436,7 @@ int __declspec( dllexport ) Unload(void) }
SkypeMsgCleanup();
- WSACleanup();
+ //WSACleanup();
FreeVSApi();
UnhookEvents();
UnhookEvent(hChatEvent);
|