summaryrefslogtreecommitdiff
path: root/metacontacts/edit.c
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2012-07-19 00:17:32 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2012-07-19 00:17:32 +0000
commite89fe281f2589d9bc562b8f59efba3680d497137 (patch)
tree2129283d730d508ef295d377b05321c0cc67b63f /metacontacts/edit.c
parent9a04d5930c26ba291b4ceee5180ec599147cdb64 (diff)
Updated for compatibility with Unicode avatars
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@602 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'metacontacts/edit.c')
-rw-r--r--metacontacts/edit.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/metacontacts/edit.c b/metacontacts/edit.c
index 9a5f55d..4aa5cf6 100644
--- a/metacontacts/edit.c
+++ b/metacontacts/edit.c
@@ -213,18 +213,7 @@ void ApplyChanges(CHANGES *chg)
Meta_FixStatus(chg->hMeta);
// fix avatar
- most_online = Meta_GetMostOnlineSupporting(chg->hMeta, PFLAGNUM_4, PF4_AVATARS);
- if(most_online) {
- PROTO_AVATAR_INFORMATION AI;
-
- AI.cbSize = sizeof(AI);
- AI.hContact = chg->hMeta;
- AI.format = PA_FORMAT_UNKNOWN;
- strcpy(AI.filename, "X");
-
- if((int)CallProtoService(META_PROTO, PS_GETAVATARINFO, 0, (LPARAM)&AI) == GAIR_SUCCESS)
- DBWriteContactSettingString(chg->hMeta, "ContactPhoto", "File",AI.filename);
- }
+ Meta_UpdateAvatar(chg->hMeta);
if(MetaAPI_GetForceState((WPARAM)chg->hMeta, 0) != chg->force_default)
MetaAPI_ForceDefault((WPARAM)chg->hMeta, 0);