Properly handle avatar/logo BINVALs
Properly handle avatar/logo BINVALs

Thanks to Petter Ericson for contributing the basis for this patch!

prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2,prosody-modules/import2