Skip to content
Snippets Groups Projects
Commit 80e5934b authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Dont skip extension point

- If the contact has no avatar the tooltip extension point was not executed
parent ce0abb99
No related branches found
No related tags found
No related merge requests found
......@@ -449,10 +449,9 @@ class RosterTooltip(StatusTable):
scale = self._ui.tooltip_grid.get_scale_factor()
surface = app.contacts.get_avatar(
account, self.prim_contact.jid, AvatarSize.TOOLTIP, scale)
if surface is None:
return
self._ui.avatar.set_from_surface(surface)
self._ui.avatar.show()
if surface is not None:
self._ui.avatar.set_from_surface(surface)
self._ui.avatar.show()
app.plugin_manager.gui_extension_point(
'roster_tooltip_populate', self, contacts, self._ui.tooltip_grid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment