Commit 0b2826d9 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

fix: Add workspace avatar fallback for missing images

Fixes #10833
parent cf9e5fe9
......@@ -467,9 +467,13 @@ def get_workspace_surface(self,
workspace_id, 'avatar_sha')
if avatar_sha:
surface = self._load_surface_from_storage(avatar_sha, size, scale)
if surface is None:
return None
return clip(surface, 'round-corners')
if surface is not None:
return clip(surface, 'round-corners')
# avatar_sha set, but image is missing
# (e.g. avatar cache deleted)
workspace_id, 'avatar_sha', '')
rgba = make_rgba(color or DEFAULT_WORKSPACE_COLOR)
letter = name[:1].upper()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment