Beispiel #1
0
void self_remove_avatar()
{
    unset_avatar(&self.avatar);
    uint8_t hex_id[TOX_FRIEND_ADDRESS_SIZE * 2];
    id_to_string(hex_id, self.id_binary);
    delete_saved_avatar(hex_id);
    tox_postmessage(TOX_AVATAR_UNSET, 0, 0, NULL);
}
Beispiel #2
0
void self_remove_avatar(void) {
    unset_avatar(&self.avatar);
    delete_saved_avatar(-1);
    postmessage_toxcore(TOX_AVATAR_UNSET, 0, 0, NULL);
}