it returns None or ask. so catch ask too
This commit is contained in:
parent
9e8163774d
commit
b34005da3d
|
@ -362,7 +362,7 @@ class Interface:
|
||||||
if show_notification:
|
if show_notification:
|
||||||
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(
|
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(
|
||||||
jid)
|
jid)
|
||||||
if avatar_pixbuf is None:
|
if avatar_pixbuf in (None, 'ask'):
|
||||||
path_to_file = None
|
path_to_file = None
|
||||||
else:
|
else:
|
||||||
avatar_pixbuf = gtkgui_helpers.get_scaled_pixbuf(
|
avatar_pixbuf = gtkgui_helpers.get_scaled_pixbuf(
|
||||||
|
@ -397,7 +397,7 @@ class Interface:
|
||||||
if show_notification:
|
if show_notification:
|
||||||
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(
|
avatar_pixbuf = gtkgui_helpers.get_avatar_pixbuf_from_cache(
|
||||||
jid)
|
jid)
|
||||||
if avatar_pixbuf is None:
|
if avatar_pixbuf in (None, 'ask'):
|
||||||
path_to_file = None
|
path_to_file = None
|
||||||
else:
|
else:
|
||||||
avatar_pixbuf = gtkgui_helpers.get_scaled_pixbuf(
|
avatar_pixbuf = gtkgui_helpers.get_scaled_pixbuf(
|
||||||
|
|
Loading…
Reference in New Issue