summaryrefslogtreecommitdiff
path: root/plugins/Toaster/src/services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Toaster/src/services.cpp')
-rw-r--r--plugins/Toaster/src/services.cpp10
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;
}
}