xep-0084:
So far we removed the avatar feature only after a succesful retrive in avatar_request_item_by_id() before we are going to retrieve the actual image. We should remove it at every `/avatar barejid` call too so in case one retrieval was unsucessful that we can call it again. So far it seems like there is no other way to trigger getting the nodes except announcing that we support the avatar feature.
This commit is contained in:
@@ -65,9 +65,13 @@ avatar_pep_subscribe(void)
|
||||
bool
|
||||
avatar_get_by_nick(const char* nick)
|
||||
{
|
||||
caps_remove_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY);
|
||||
free(looking_for);
|
||||
|
||||
looking_for = strdup(nick);
|
||||
|
||||
caps_add_feature(XMPP_FEATURE_USER_AVATAR_METADATA_NOTIFY);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user