1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/tests/unittests/xmpp/stub_avatar.c
MarcoPolo-PasTonMolo 6a44e18853 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
2022-05-26 17:49:34 +03:00

16 lines
220 B
C

#include <stdio.h>
#include <glib.h>
#include <stdlib.h>
void avatar_pep_subscribe(void){};
gboolean
avatar_get_by_nick(const char* nick)
{
return TRUE;
}
gboolean
avatar_set(const char* path)
{
return FALSE;
}