tigase / siskin-im

(M) Public Project of Tigase Messenger for iOS devices based on Tigase Swift XMPP library.
GNU General Public License v3.0
175 stars 37 forks source link

Can't set avatar : "TigaseSwift.PubSubError error 1." #161

Open eerielili opened 2 years ago

eerielili commented 2 years ago

Describe the bug When my contact tries to change its profile picture within Siskin, he's met with the error "User avatar publication failed. The operation couldn't be completed. (TigaseSwift.PubSubError error 1.)"

To Reproduce Described in the documentation, tap "Choose avatar" and select a picture

Expected behavior The selected image is the avatar that'll be set.

Screenshots image

Details (please complete the following information):

Additional context I own the server side of things. It's a prosody server version 0.11.11 on Debian Buster. Modules enabled related to avatar are the following:

Prosody modules are kept up to date with hg.

I digged a bit, and it seems you're using XEP-0060 for PubSub, is that correct for Siskin as well ?

Thanks.

hantu85 commented 2 years ago

I guess you are referring to the issue discussed in the Tigase support channel and already fixed in 3b62660620da1b3e2aca3458871aae5089774a5c

The issue was caused by using 180x180 PNG for avatars which were rejected by ejabberd (and most likely by Prosody as well) due to the large size of the stanza.

This fix is scheduled to be released as a part of the next version (7.1).

eerielili commented 2 years ago

I guess you are referring to the issue discussed in the Tigase support channel and already fixed in 3b62660

Yeah I have seen this the other day and was wondering if it got any link to this issue. Thanks for confirming it ! xmpp rocks

I'll wait for next version to test if it works and keep Converse.js as a workaround for now since it uses vcard-temp and siskin understand it.