about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2019-12-18 13:14:17 +0100
committerMichael Vetter <jubalh@iodoru.org>2019-12-18 13:14:17 +0100
commitf692d6d0e0620051902a1f398e41da38c6af20f1 (patch)
treeaff6c4ae3500889bd7370c8a8d1c5259345e8000 /src
parentc2aa585615d35186fbf8ada94f8974bcb386ce8d (diff)
downloadprofani-tty-f692d6d0e0620051902a1f398e41da38c6af20f1.tar.gz
xep-0084: Make it work multiple times
Diffstat (limited to 'src')
-rw-r--r--src/xmpp/avatar.c4
1 files changed, 4 insertions, 0 deletions
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);