diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-29 19:50:22 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-08-29 19:50:22 +0000 |
commit | 3ad0e7bcb4d239cdc7d1eba66c13318b8d4d6895 (patch) | |
tree | 04695c307c5100761c4e618f5f89ccb09b9180f9 /plugins/Toaster/src/services.cpp | |
parent | e1690a2bc1c63a18ea015627920f0a7e98723cb1 (diff) |
Toaster: reverted :-(
git-svn-id: http://svn.miranda-ng.org/main/trunk@15105 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Toaster/src/services.cpp')
-rw-r--r-- | plugins/Toaster/src/services.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/Toaster/src/services.cpp b/plugins/Toaster/src/services.cpp index 323eb50b72..03475b5f38 100644 --- a/plugins/Toaster/src/services.cpp +++ b/plugins/Toaster/src/services.cpp @@ -46,16 +46,6 @@ static void ShowToastNotification(TCHAR* text, TCHAR* title, MCONTACT hContact) PROTO_AVATAR_INFORMATION pai = { 0 };
pai.hContact = hContact;
CallProtoService(szProto, PS_GETAVATARINFO, (WPARAM)0, (LPARAM)&pai);
- if (pai.format != PA_FORMAT_PNG)
- {
- wchar_t dir[MAX_PATH];
- FoldersGetCustomPathT(g_hTempAvatarsFolder, dir, _countof(dir), VARSW(L"%miranda_userdata%\\Temp"));
- ToasterAvatar *ta = new ToasterAvatar(&pai);
- CMStringW wszPath(FORMAT, L"%s\\%lld.%d.png", dir, hContact, db_get_dw(hContact, "ContactPhoto", "ImageHash"));
- ta->Save(wszPath);
- imagePath = wszPath.Detach();
- delete ta;
- }
imagePath = pai.filename[0] ? mir_tstrdup(pai.filename) : nullptr;
}
}
|