about summary refs log tree commit diff stats
path: root/src/xmpp/avatar.h
diff options
context:
space:
mode:
authorMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-05-26 17:49:34 +0300
committerMarcoPolo-PasTonMolo <marcopolopastonmolo@protonmail.com>2022-05-26 17:49:34 +0300
commit6a44e188537ee2d70226ad9dba4ae89c15437e2b (patch)
tree3081b0af49199c6f5b3a8fdc1ff07eac64420476 /src/xmpp/avatar.h
parentb4523d6c42825bda175663730001302adb21b95e (diff)
downloadprofani-tty-6a44e188537ee2d70226ad9dba4ae89c15437e2b.tar.gz
Add `/avatar set` command to publish avatar
Use `/avatar set <path>` where <path> is an image file to upload a new
avatar for the current user. When the avatar is too big it gets scaled
down. Scaling code copied from dino.

Fixes https://github.com/profanity-im/profanity/issues/1687
Diffstat (limited to 'src/xmpp/avatar.h')
-rw-r--r--src/xmpp/avatar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmpp/avatar.h b/src/xmpp/avatar.h
index 98532917..1767a2b2 100644
--- a/src/xmpp/avatar.h
+++ b/src/xmpp/avatar.h
@@ -40,5 +40,6 @@
 
 void avatar_pep_subscribe(void);
 gboolean avatar_get_by_nick(const char* nick, gboolean open);
+gboolean avatar_set(const char* path);
 
 #endif