Dont skip extension point

- If the contact has no avatar the tooltip extension point was not executed
This commit is contained in:
Philipp Hörist 2019-01-26 20:04:43 +01:00
parent ce0abb991c
commit 80e5934bb5
1 changed files with 3 additions and 4 deletions

View File

@ -449,8 +449,7 @@ class RosterTooltip(StatusTable):
scale = self._ui.tooltip_grid.get_scale_factor() scale = self._ui.tooltip_grid.get_scale_factor()
surface = app.contacts.get_avatar( surface = app.contacts.get_avatar(
account, self.prim_contact.jid, AvatarSize.TOOLTIP, scale) account, self.prim_contact.jid, AvatarSize.TOOLTIP, scale)
if surface is None: if surface is not None:
return
self._ui.avatar.set_from_surface(surface) self._ui.avatar.set_from_surface(surface)
self._ui.avatar.show() self._ui.avatar.show()