telepathy-haze still uses the deprecated GetAvatarRequirements spec
Here, have a patch. One thing I'm slightly unsure about is that haze_connection_avatars_properties_getter can be called before the Connection is CONNECTED. Is it safe for it to assume that the account's prpl_info will be present already?
Looks fine. Does it work? Is there a simple smoke-test in Gabble we could steal?
(In reply to comment #2) > Looks fine. Does it work? Is there a simple smoke-test in Gabble we could > steal? Good idea. I stole the one from Gabble and adjusted it to also try before connecting. (In reply to comment #1) > One thing I'm slightly unsure about is that > haze_connection_avatars_properties_getter can be called before the Connection > is CONNECTED. Is it safe for it to assume that the account's prpl_info will be > present already? It turns out this wasn't safe, and crashed Haze. Fixed in my revised branch by returning dummy values before CONNECTED (the spec allows this).
(In reply to comment #3) > (In reply to comment #2) > > Looks fine. Does it work? Is there a simple smoke-test in Gabble we could > > steal? > > Good idea. I stole the one from Gabble and adjusted it to also try before > connecting. Could the adjustment be merged back to Gabble too? > (In reply to comment #1) > > One thing I'm slightly unsure about is that > > haze_connection_avatars_properties_getter can be called before the Connection > > is CONNECTED. Is it safe for it to assume that the account's prpl_info will be > > present already? > > It turns out this wasn't safe, and crashed Haze. Fixed in my revised branch by > returning dummy values before CONNECTED (the spec allows this). Good catch.
Fixed in git for 0.3.5. (In reply to comment #4) > Could the adjustment be merged back to Gabble too? Yes, in progress.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.