Skip to content

[stable-25.0.x] fix(avatars): draw guest and bot avatars on the client - #6618

Draft
backportbot[bot] wants to merge 1 commit into
stable-25.0.xfrom
backport/6613/stable-25.0.x
Draft

[stable-25.0.x] fix(avatars): draw guest and bot avatars on the client#6618
backportbot[bot] wants to merge 1 commit into
stable-25.0.xfrom
backport/6613/stable-25.0.x

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 2, 2026

Copy link
Copy Markdown

Backport of #6613

Warning, This backport's changes differ from the original and might be incomplete 鈿狅笍

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

fix(avatars): draw guest and bot avatars on the client

Guests, email participants and bots have no avatar on the server, yet the

app requested one from /index.php/avatar/guest/{name} in six places and drew

its own initial or ">" in others, each place with its own idea of when a

display name counts as a real name.

Resolve all of them in CharacterAvatarUtils, mirroring the web client's

AvatarWrapper so both clients show the same avatar for the same actor: a

named guest gets the first character of their name, a bot the shell prompt,

an unnamed guest the generic person icon, and the changelog and sample bots

keep the app icon. Two renderers consume that decision,

CharacterAvatarDrawable for views and notifications and CharacterAvatar for

Compose, both scaling the character to the bounds they are given instead of

to a fixed bitmap, and both taking the theme-aware colours web uses.

Removes ApiUtils.getUrlForGuestAvatar together with the requests for it,

TextDrawable, and the already unused ChatMessageUtils.

Assisted-by: Claude Code:claude-opus-5

Signed-off-by: Andy Scherzinger <[email protected]>

[skip ci]
@backportbot backportbot Bot added bug Something isn't working 3. to review Waiting for reviews AI assisted labels Sep 2, 2026
@backportbot backportbot Bot added this to the 25.0.0 milestone Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews AI assisted bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant