From f692d6d0e0620051902a1f398e41da38c6af20f1 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 18 Dec 2019 13:14:17 +0100 Subject: [PATCH] xep-0084: Make it work multiple times --- src/xmpp/avatar.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xmpp/avatar.c b/src/xmpp/avatar.c index 0a09f43e..9d8013f7 100644 --- a/src/xmpp/avatar.c +++ b/src/xmpp/avatar.c @@ -120,6 +120,8 @@ _avatar_metadata_nofication(xmpp_stanza_t *const stanza, void *const userdata) void avatar_request_item_by_id(const char *jid, const char *id) { + caps_remove_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY); + xmpp_ctx_t * const ctx = connection_get_ctx(); //char *id = connection_create_stanza_id(); @@ -182,6 +184,8 @@ avatar_request_item_handler(xmpp_stanza_t *const stanza, void *const userdata) log_error("Unable to save picture: %s", err->message); cons_show("Unable to save picture %s", err->message); g_error_free(err); + } else { + cons_show("Avatar saved as %s", filename->str); } g_string_free(filename, TRUE);