From 6a44e188537ee2d70226ad9dba4ae89c15437e2b Mon Sep 17 00:00:00 2001 From: MarcoPolo-PasTonMolo Date: Thu, 26 May 2022 17:49:34 +0300 Subject: Add `/avatar set` command to publish avatar Use `/avatar set ` where 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 --- tests/unittests/xmpp/stub_avatar.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/unittests/xmpp/stub_avatar.c b/tests/unittests/xmpp/stub_avatar.c index ccd9cf4d..453d1863 100644 --- a/tests/unittests/xmpp/stub_avatar.c +++ b/tests/unittests/xmpp/stub_avatar.c @@ -8,3 +8,8 @@ avatar_get_by_nick(const char* nick) { return TRUE; } +gboolean +avatar_set(const char* path) +{ + return FALSE; +} -- cgit 1.4.1-2-gfad0