Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir <me@boku.ru>2018-02-16 16:16:26 +0300
committerVladimir <me@boku.ru>2018-04-19 17:13:57 +0300
commitb613aa059cf89277413ffda9261a0950975871d3 (patch)
treedeb18edf6893f7f190d52fd8d89f2b4a7f9c9ee3 /skypeweb
parentc395028067037e6f8846cca14510cfd5fa8b7dac (diff)
skypeweb_got_info(): Do not clear mood if it's null (it's always null via this call)
Diffstat (limited to 'skypeweb')
-rw-r--r--skypeweb/skypeweb_contacts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/skypeweb/skypeweb_contacts.c b/skypeweb/skypeweb_contacts.c
index 21f6ef9..1c22f51 100644
--- a/skypeweb/skypeweb_contacts.c
+++ b/skypeweb/skypeweb_contacts.c
@@ -1218,7 +1218,10 @@ skypeweb_got_info(SkypeWebAccount *sa, JsonNode *node, gpointer user_data)
sbuddy->sa = sa;
}
- g_free(sbuddy->mood); sbuddy->mood = g_strdup(json_object_get_string_member(userobj, "mood"));
+ //At the moment, "mood" field is present but always null via this call. Do not clear it.
+ if (json_object_has_member(userobj, ("mood")) && !json_object_get_null_member(userobj, ("mood")))) {
+ g_free(sbuddy->mood); sbuddy->mood = g_strdup(json_object_get_string_member(userobj, "mood"));
+ }
}
purple_notify_userinfo(sa->pc, username, user_info, NULL, NULL);