Overview
A user's profile carries the public identity they present to the rest of the server (login, display name, avatar, custom status, bio, shared time zone) plus server-synced User Preferences (timezone, time format). Human accounts support the complete profile. A bot, its owner, and bot or account managers can change the login, display name, bio, and avatar of a bot (FDR-038). The login is throttled to discourage identity-confusion abuse. Account managers can bypass this limit. The profile does not contain App Preferences, such as appearance, thread presentation, language, editor, and send-key behavior. The app applies these choices to its registered servers.
Behavior
- Right-click the current-user card to open your Profile Card. On touch devices, press and hold the card. Clicking or tapping the avatar opens presence settings.
- Member cards also open their Profile Card on right-click or touch long-press. A menu that is still loading can be dismissed. If loading fails, the menu offers Try Again.
An explicit browser-default time zone is stored as an empty optional value.
An absent value means no choice has been recorded. Both values use Browser
default. Startup does not save the browser time zone to the account.
Existing timezone-clear events rebuild this distinction during replay. The
config snapshot contract is v3 so older snapshots cannot erase that choice.
- Bot profiles show an Owned by row below the bot identity. The owner's avatar and name open the shared user profile card on click or tap. The card includes the room’s message and profile actions, subject to viewer permissions. This row stays visible when permissions are collapsed. Owner identity refreshes every 30 seconds while the bot profile is open.
Bot profile panes include a readable permission summary. See FDR-038 for effective access, room visibility, and manager-only inactive grants.
UserService.UpdateUserProfile and MyAccountService.UpdateSettings use update masks as defined
in ADR-044. Unselected fields
stay unchanged. A selected field without a value resets to its default or
absence: bio and timezone can be cleared, but login and display name must be
non-empty. An omitted mask selects populated fields; an explicit empty mask is
invalid. The bundled client sends explicit masks.
Profile edits through UserService.UpdateUserProfile validate all selected fields before writing them.
The profile facts and any login cooldown fact commit in one atomic batch. A
failed login change cannot leave a new display name or bio behind. A conflict
at append returns to the caller instead of replaying the batch.
SetCustomStatus replaces the complete status. Emoji and text are required;
omitted expiry removes any previous expiry. DeleteCustomStatus clears it.
-
Display name — freely editable by a human or bot account. Shown in messages, member lists, and mention autocomplete. A name accepts visible, single-line Unicode text, including punctuation and emoji at the start. Surrounding whitespace is trimmed; internal spaces are preserved. The limit is 32 Unicode code points. Controls, line breaks, directional controls, and unsupported invisible formatting are rejected. Script joiners, variation selectors, and emoji tags are allowed. Block mosaic characters (Block Elements and Symbols for Legacy Computing, with its Supplement) are rejected. A stored name that does not satisfy the current rules is shown as the login. Whitespace, combining marks, and formatting alone do not make a valid name. Username rules do not change.
-
Fallback avatar — when an avatar is absent or cannot load, the client uses the first letter or number from up to two words that contain one. It keeps complete Unicode characters and their combining marks. If the name has no letters or numbers, it uses the first complete emoji, then the login initial, then a user icon. All accounts use the same neutral surface background and normal text colour, which follow the selected surface tone and theme. The text colour keeps initials readable in both themes. These avatars are generated locally and need no external service.
-
Login (username) — editable by a human or bot account with a 30-day cooldown between changes. A user with
user.manage-accountsbypasses the cooldown for their own login. The default maximum login length is 64 characters. Operators can setcore.accounts.max_login_lengthfor new and changed logins. Human and bot logins use the same rules: they start with a letter or number and cannot end with a period; periods remain valid within a login. Each successful change that does not use the bypass records a timestamp; subsequent changes within the window are rejected with a clear error message. A change by a bot owner or bot manager follows the same rule as a change by the bot. A change by an account manager does not check or start the cooldown. -
Case-only changes (for example,
alice→Alice) do not check or start the cooldown. -
Avatar — human and bot users can upload an image. The server resizes it to 256×256 maximum and stores it as lossless WebP. The old avatar is deleted after the new avatar is committed. Users can also delete their avatar and use the fallback avatar. A caller with
user.manage-accountscan manage another human's avatar. A bot owner, a caller withbot.manage, or a caller withuser.manage-accountscan manage a bot's avatar. -
Custom status — human users can set an emoji plus short text. The emoji is shown next to their name; the text is shown alongside it where space allows and as hover/accessible text in compact places.
-
Custom status feedback — setting, changing, or clearing a status updates the badge and closes the editor or status menu without a success toast. Failed requests still show an error.
-
Custom status across clients — setting, changing, or clearing a status updates the current-user badge and status menu in other connected clients of the same account. Opening the editor uses the latest status. No page reload is required.
-
Custom status templates — the web client offers preset statuses for lunch, holiday/vacation, and sick leave plus a custom mode. Presets store reserved text tokens in the same free-form status text field so each client can render the label in its active locale. Custom mode stores the user's literal text.
-
Custom status expiry — users can optionally choose an expiry date and time. After that instant, projected reads and the web client hide the status automatically. Users can also clear it manually.
-
Clear status shortcut — when a custom status is set, the current-user status menu shows Clear status above Set custom status. It clears the status without opening the editor or asking for confirmation. Presence stays unchanged. If the request fails, the status stays set and the user can retry.
-
User Preferences — human accounts currently support a time zone (IANA name, e.g.,
Europe/Berlin), a time format (browser default / 12-hour / 24-hour), and permission to share the time zone. The server stores these choices and syncs them across devices. The stored time zone is private by default. If a choice is not set, the frontend uses the browser time zone and locale time-format default. The client saves a named time zone only when the user explicitly selects and saves it. Browser default follows the current device without saving its time zone to the account. Time-zone sharing remains a separate opt-in choice. The unified Settings sidebar puts these personal choices in the Your account group. Permission-gated Server configuration remains separate. -
About — human and bot accounts can set public Markdown profile text of up to 1,000 characters through
UserService.UpdateUserProfile. The text is shown on the Profile Card and in the Profile View. Profiles use the message Markdown renderer and block styles, including headings, lists, quotes, code blocks, tables, links, and timestamp controls. The client disables source HTML and sanitizes rendered output. The About editor uses the app's selected Markdown or visual editor and the message formatting toolbar. Both editors save Markdown source. The 1,000-character limit applies to that source. Switching editors and failed saves preserve the current draft. In the Profile View, non-empty About text appears in a collapsible About section. It starts expanded. The browser remembers the choice per server. The content stays mounted while collapsed so Markdown loading does not interrupt the expansion animation. The label applies to human and bot accounts because the text can describe either. The API field remainsbio. -
Public time zone — a user must explicitly enable time-zone sharing. When sharing is enabled, public user reads include the stored IANA zone and clients show the current local time on profile surfaces. When sharing is disabled, public reads and realtime updates omit both values. The account can still use its stored time zone for private formatting.
-
Profile View — “View profile” shows the complete public profile as a temporary subview of Members in the current Room Sidebar. It does not navigate or create a DM, and does not require permission to start DMs. The back arrow returns to the current room's Member List. On desktop, the close button hides the sidebar. Below 1024 px viewport width, overlay headers have only the back arrow: return to Members first, then use the Members back arrow to close the sidebar. This also applies inside DMs. Selecting another profile replaces the current subview. Changing rooms or servers clears it. The Profile View shows the avatar, display name, login, custom status, bio, and local time. Its header is the shared user card. A right-click, a touch long-press, or the menu button of the card opens the user's Profile Card. That card has the same actions as in the Member List, except “View profile” and “Remove from room”. For example, the card of a bot shows Manage bot to the viewers that FDR-038 allows. The direct-message header retains its information button, including in a self-DM. Closing a profile opened by that button returns to the prior room-extras panel, or hides the Room Sidebar when no panel was open.
-
Desktop sidebar memory — On desktop (at least 1024px wide), channels open Members by default, and a one-to-one DM or self-DM opens its profile by default. The browser remembers explicit choices, including closed, separately for each server and conversation within the current page session. Room navigation, reloads, and browser session restoration retain these choices. A fresh page session starts with the defaults; choices from earlier permanent storage are ignored. Putting the PWA in the background does not reset a choice. A saved profile also retains the previous room-extras panel. Mobile panes open only after an explicit action. Automatic and restored desktop views do not open a mobile overlay when the viewport becomes narrow. An explicitly opened Profile View follows the responsive Room Sidebar layout when the viewport changes. A mobile room-extras overlay does not block the room while the viewport is desktop-wide. The overlay opens again when the viewport becomes narrow. Mobile actions do not change the saved desktop choice.
-
App Preferences — users can select System, Light, or Dark appearance, overlay or side-by-side thread presentation, a language, a message editor, and send-key behavior. System appearance follows the browser or OS colour-scheme preference. Overlay thread presentation is the default. The app applies these choices to every registered server. The Application Header gear opens the Settings Overview for the active authenticated server. Users can open Appearance from its grid or the sidebar. The unified Settings sidebar puts Appearance, Language, and Composer in an App preferences group. If no authenticated server is available, the same pages use a separate App Preferences sidebar. App Preferences do not sync to another browser or device.
-
AT Protocol handles — both the Profile Card and Profile View show the handles of linked AT Protocol accounts. See FDR-058.
-
Profile Card — opening a user's Profile Card as a popover or bottom sheet shows their public identity, bio snippet, live local time in their shared zone, and available message or moderation actions. A final “Copy User ID” action copies the stable user ID to the clipboard.
-
Edit own profile — the menu in your own Profile Card or sidebar Profile View offers “Edit profile”. It closes the menu and opens the existing profile settings for that server. The shortcut is available without management permissions. It is absent from other users' profiles and from bot or deleted profiles.
-
Admin overrides — users with
user.manage-accountscan update the login, display name, and bio of human profiles, bypass the login cooldown, clear the cooldown so the user can change again before the 30 days expire, and manage an avatar. Profile edits and cooldown resets in member management also accept the caller's own account. -
Bot identity management — an API-key-authenticated bot updates its own login, display name, bio, and avatar through
UserService. Human owners manage the lifecycle, permissions, API keys, profile, and avatar of their bots. Onlybot.manageallows reassignment. A human or bot caller withbot.manageoruser.manage-accountscan also change the login, display name, bio, and avatar of a bot. The bot detail page in Server Admin shows a profile editor to the owner and to these managers. A login change by the owner or a bot manager checks and starts the cooldown of the bot. The profile editor asks for confirmation before such a change and locks the username field while the cooldown runs. A login change by an account manager does not check or start the cooldown. Bot custom-status and personal-settings management are not supported. -
UI Style — Appearance offers a Depth slider for bevel strength from 0% to 100% in 10% steps. 50% is the default (0% in the iOS app). 0%, 50%, and 100% match the former Flat, Kinda 3D, and Very 3D modes, and the slider names them at those steps; saved modes migrate to these levels. 0% removes decorative bevels and inset shading; steps above 50% strengthen and widen them. Changes apply immediately across registered servers and remain in this browser. Changes animate unless reduced motion is enabled. The accent choice, focus indicators, and layout do not change.
-
Contrast — Appearance offers a Contrast slider from 0% to 100% in 10% steps; half steps saved by earlier versions snap to the nearest 10% step. It changes text, surface, and background contrast in both light and dark themes. The middle keeps the original appearance. At 100%, the app uses black text on a white background in light mode and white text on a black background in dark mode. Clear boundaries separate surfaces. The change applies while the slider moves and remains in this browser. Accent, status colours, focus indicators, and surface depth do not change.
-
Accent colour — Appearance offers eight colours (Blue, Cyan, Teal, Green, Amber, Orange, Pink, and Violet) plus Grey. Cyan is the default when a choice is absent or invalid. Changes apply immediately across the app and remain after reload. The choice stays in this browser and needs no server request or external service. Each palette has readable shades for light and dark themes; primary buttons use white labels in both. Status and warning colours remain independent. The picker names each colour and marks the selection with a check; it supports keyboard navigation.
-
Background colour — Appearance offers twelve surface tones in hue order: Neutral, Stone, Taupe, Clay, Olive, Forest, Mist, Grey, Slate, Midnight, Mauve, and Plum. The user selects one tone for light mode and one for dark mode. Grey (light) and Neutral (dark) are the defaults and keep the original appearance. A tone tints backgrounds, surfaces, borders, and text. The app uses the tone of the active theme. The tones appear below the accent colours in the Theme customisation panel, which also holds the Depth and Contrast sliders. The picker shows only the tones for the active theme, so the user changes the theme to select the other tone. Each sample shows the tone with the selected accent. Choices apply immediately, stay in this browser, and need no server request or external service. Accent, status colours, contrast, and surface depth do not change. Tone, accent, and contrast changes fade briefly unless reduced motion is enabled. An explicit theme choice reveals the new palette in a circle from the selected control. Keyboard activation starts the circle at the centre of the control. Browsers without View Transitions keep the colour fade. Reduced motion disables the reveal.
-
Animations — Appearance offers Automatic, Enabled, and Disabled. Automatic is the default and follows the system's reduced-motion preference. Enabled overrides that preference; Disabled suppresses app motion. The choice applies immediately to CSS effects, canvas decoration, and JavaScript transitions, including startup motion on reload. It stays in this browser, applies to all registered servers, and makes no external connection. Static feedback, such as copy confirmation and the message-location cue, remains visible.
-
Navigation motion — switching channels or pages briefly fades the new main content to full opacity without moving or scaling it. Navigation does not wait for the fade. Initial loads, query changes, and overlays do not trigger it. Reduced motion disables it. The Room Sidebar changes immediately, including opening, closing, and switching sidebar panels or profiles. Navigation stops an active theme reveal. Theme effects run locally and make no external connections. Thread-pane motion is described in FDR-002.
Design Decisions
1. 30-day login change cooldown
Decision: A user can change their login only once every 30 days. A user with user.manage-accounts can bypass this limit for their own login. A bypassed change does not clear or advance the existing cooldown timestamp.
Why: Logins are the basis for @mentions, search results, and recognition across the server. Frequent changes are an impersonation/confusion risk — @alice today might be a different person tomorrow. A 30-day cooldown discourages rapid churn while still allowing occasional rename for legitimate reasons. Case-only changes are exempt because they don't change identity.
Tradeoff: A user who legitimately needs to change twice in 30 days (e.g., picked a typo'd name) is stuck. The admin clear-cooldown affordance handles those cases.
2. Login uniqueness is enforced with projection catch-up and OCC
Decision: Login changes wait for the user projection to catch up, check its derived normalised login-digest index, and append the encrypted login-change event with optimistic concurrency over the user subject family. UserService.UpdateUserProfile returns an append conflict to the caller. Operator and bootstrap commands can retry against the updated projection. Projection apply decrypts the login transiently to update the digest index; user reads decrypt it again only while hydrating the response.
Why: User profile state now lives in the event-sourced user aggregate, and new durable login-change facts carry encrypted PII. Projection catch-up plus OCC keeps uniqueness race-safe without reintroducing a separate login KV as source of truth.
Tradeoff: The write path depends on projection readiness and may retry under contention. In exchange, the durable event stream remains append-only and the login index stays derived state.
3. Privileged changes do not advance the cooldown timestamp
Decision: A login change by an account manager does not check or advance the cooldown clock, for another user or for their own login. The previous cooldown timestamp stays in effect. A bot owner or bot manager does not have this privilege: their login change for a bot checks and starts the cooldown of the bot, unless they also have user.manage-accounts.
Why: A privileged correction does not use the user's normal login-change allowance. Bot owners and bot managers are not account managers. A bot's login is a mention target like a person's login, so frequent renames of a bot cause the same confusion.
Tradeoff: A user can see a cooldown that started before a privileged login change. This case is uncommon. An owner who makes a mistake in a bot's login must wait 30 days, ask an account manager to change the login, or ask an operator to clear the cooldown.
4. Avatars are WebP-only, capped at 256×256
Decision: Uploaded avatars are resized to a 256×256 max box and re-encoded as lossless WebP. Original is discarded. Why: Avatars render at small sizes everywhere — 256px is the largest the UI ever shows. Storing originals is waste. Lossless WebP is small and supports transparency. See FDR-008's notes on the WebP/JPEG split for transparency vs photographic content. Tradeoff: A user uploading a high-resolution avatar can't ever get the original back. The 256×256 cap can't be inferred from the user's perspective unless documented.
5. User Preferences and App Preferences have different scopes
Decision: Timezone and time format are User Preferences in the user's profile (User.settings). The server syncs these choices. Appearance, thread presentation, language, editor, and send-key behavior are App Preferences. The app stores these choices and applies them to its registered servers. Authenticated users manage both scopes in one Settings sidebar, with separate groups that identify the scope.
Why: The server can use a person's timezone for server features. For example, the server can warn you when it is late for a person you want to message. The app controls presentation and input choices. These choices must stay the same when you move between its registered servers.
Tradeoff: Each timezone or time-format change requires a mutation. These settings change rarely, so the cost is small. App Preferences can be different in each browser or device and do not follow the user. The selected server remains in the Settings header so the account scope stays clear beside the app-wide group.
6. Browser timezone fallback when unset
Decision: If the user has not selected a time zone, the frontend formats timestamps in the browser time zone without saving it to the account. An explicit Browser default choice has the same behavior. Existing saved time zones remain unchanged; the user can clear one to return to Browser default. Why: The browser provides a useful display default. A device setting must not silently become a persistent account preference. Existing saved values do not identify whether the user or an older client selected them. Tradeoff: Travelers see times rendered in their travel timezone if they haven't explicitly set one. Most users either don't notice or prefer this.
7. Cross-user identity edits use target-aware authorization
Decision: Cooldown resets require user.manage-accounts, including when the caller targets their own human account. Profile edits and avatar changes use the target-aware UserService methods. Human and bot self-edits do not require a permission; the login cooldown applies unless the caller has user.manage-accounts. A cross-user human target requires user.manage-accounts. A cross-user bot target permits its owner, user.manage-accounts, or bot.manage. These checks apply to human and bot callers. Bot lifecycle and credential management use ownership or bot.manage in BotService.
Why: Chatto's simplified RBAC model is permission-based for everyone except effective owners, who are protected by the owner override rather than target-rank gates.
Tradeoff: Profile and avatar authority differ from custom-status, presence, and settings authority, which stay self-only. Clients must not infer one authority from access to the other operations.
8. Custom status is durable profile metadata, not presence
Decision: Custom statuses are stored as user-aggregate EVT facts (custom_status_set / custom_status_cleared) and projected into User.customStatus. The status is independent of online/away/DND presence and does not affect notification routing.
Why: The product meaning is user-authored profile context ("working on X", "back after lunch"), not a current connection-state hint. Persisting it in EVT makes it replayable, backup-safe, and consistent across replicas and devices while keeping presence ephemeral.
Tradeoff: An expired status remains in historical EVT facts. Projections and clients hide it after expiresAt; clearing is a separate explicit fact rather than a background rewrite or KV delete.
9. Custom status writes use the protobuf-first API
Decision: The web client writes custom status through MyAccountService on the ConnectRPC /api/connect surface. Resource reads remain available through ConnectRPC, while realtime profile changes arrive as authoritative semantic public events.
Why: Keeping profile writes, resource reads, and projection updates on protobuf-first public surfaces avoids transport drift and keeps profile behavior aligned with the rest of the public API migration without requiring live refetches.
Tradeoff: Clients need to combine request/response profile APIs with the app-session realtime stream rather than relying on one subscription protocol for both.
10. Status templates are client-side reserved text tokens
Decision: Built-in templates use the same persisted CustomUserStatus shape as custom statuses. The emoji is stored normally, while the text field stores a reserved token such as chatto:status:out_for_lunch. Clients that understand the token render a localized label; unknown/custom text is rendered literally.
Why: This keeps the durable EVT model simple and preserves the "any emoji plus any text" API while allowing built-in statuses to be localized for each viewer.
Tradeoff: Older clients that do not know the reserved tokens may display the raw token. This is acceptable during early development and avoids a protobuf shape change solely for UI presets.
11. Bio is encrypted PII with change-detection
Decision: Bio edits validate a 1,000-character cap, compare against the projected value, and append a durable encrypted bio_changed fact only when the value actually changes. Clearing stores an empty payload. Projected state keeps only ciphertext; reads decrypt transiently like display names. Clients render bios as Markdown through the same audited HTML boundary as message Markdown. Source HTML stays disabled.
Why: Free-form user text is PII under Chatto's crypto-shredding model, so it follows the display-name pattern. Change detection prevents idle autosaves or repeated submits from appending meaningless facts to EVT. An unchanged update returns success without a write.
Tradeoff: Unchanged-write no-ops mean clients cannot distinguish "saved" from "nothing changed"; both return the current profile, which is what UIs need.
12. One stored time zone has independent sharing permission
Decision: There is one stored time zone per account and a separate sharing setting. The time zone formats the user's own timestamps and stays private by default. The server populates the public User.timezone only when the user enables sharing. Clients then show the IANA name and the derived local time. Historical accounts and new accounts start with sharing disabled. New servers always return the sharing setting in UserSettings. Its field presence tells a client that the privacy control is supported.
Why: One stored value prevents drift between formatting and profile data. A separate permission lets a user keep the formatting benefit without disclosing location-related data. The local time stays correct across daylight saving time changes.
Tradeoff: Older servers do not support the permission and can publish a stored time zone. The client warns the user before they save a time zone on such a server. During an upgrade, all replicas must run the new version before the private behavior is reliable.
13. Context-menu profiles stay in the current room
Decision: “View profile” opens a Members subview in the current room. Back returns to Members, including when another sidebar panel was previously open. “Send message” remains the action that opens a DM. The direct-message header and default desktop profile behavior remain available. Why: Users can inspect a profile without leaving their conversation or creating another one. Profile viewing does not depend on DM permissions or on delivery of a new DM's room data. Tradeoff: The selected context-menu profile is temporary. On desktop, the browser saves Members as the sidebar choice, but does not save the selected user. After a reload, the Member List is shown. Mobile actions do not change the saved desktop choice. A direct profile URL is not available.
14. Avatar mutations use one target-aware user API
Decision: UserService.UploadAvatar and UserService.DeleteAvatar each take a target user ID. The core checks the caller, the target account kind, bot ownership, and current permissions at the domain boundary. The durable fact records the authenticated caller as its actor. The write validates stable request-time authorization inputs and uses optimistic concurrency control for the target user aggregate. The response waits for the user projection and then publishes the existing profile-update snapshot. Delete is idempotent.
Why: One command path gives human and bot avatars the same validation, storage, projection, cleanup, and realtime behavior. Stable authorization input validation prevents a torn permission or ownership decision. Target-user OCC protects account and avatar state.
Tradeoff: This is an intentional pre-1.0 API break. Clients that used MyAccountService.UploadAvatar or MyAccountService.DeleteAvatar must move to UserService and send the authenticated user's ID when they manage their own avatar.
15. Contrast stays separate from theme and accent
Decision: One browser-local slider adjusts neutral text, background, and surface contrast in both themes. Its middle position keeps the original appearance. At 0%, headings, body text, and muted text become deliberately soft. At 100%, light mode uses black text on a white background, while dark mode uses white text on a black background. Clear boundaries separate surfaces. Accent and status colours keep their meanings. Why: Users can tune clarity without changing their chosen theme or accent. The middle value preserves the appearance of existing installations. Tradeoff: Each end of the range needs visual and contrast checks in both themes. The choice does not follow the user to another browser or device.
16. Surface tones change hue, not lightness
Decision: A surface tone supplies only hue and chroma. Every tone uses the same reviewed lightness steps for each theme, and the Contrast slider mixes those steps as before. Eight tones take hue and chroma from Tailwind's neutral palettes. Four tones calculate chroma from one hue; chroma is highest at the middle steps and lower at the lightest and darkest surfaces. The user selects separate tones for light and dark mode, and CSS selects the tone for the active theme. Why: Fixed lightness keeps text, muted text, and every accent readable on each tone at every Contrast setting. Users can then add colour without a separate contrast review for each combination. Separate choices let a user pair, for example, a warm light theme with a blue-black dark theme. Tradeoff: Tones cannot make surfaces lighter or darker than the original palette. Browsers without relative colour syntax keep the original palette; there, tone choices are saved but have no visible effect. Automated contrast tests cover each tone, theme, accent, and the Contrast extremes.
The fade uses CSS only. The semantic colour tokens are registered as <color> custom properties, so :root can transition them; derived tokens follow through var().
The startup screen in app.html paints before the stylesheet loads, so it cannot resolve tones itself. The app saves the resolved startup colours of both chosen tones in chatto:loading-palette whenever the tones apply. app.html validates the saved hex colours and uses them for the loading background, gradient, text, and first browser theme colour when the saved tones still match the preferences. The app uses the same saved surface for the browser theme colour after startup. Without saved colours, it uses literals that match the default tones.
17. Profile edits use one target-aware user API
Decision: UserService.UpdateUserProfile changes the login, display name, and bio of a target user. It replaces MyAccountService.UpdateProfile and AdminUserService.UpdateUser. It uses the authorization in decision 7, which the avatar methods also use. A self-edit keeps the self-service login cooldown. An edit of another account records the caller as the actor of the facts. The login cooldown follows decision 3. Custom status, presence, and personal settings stay self-only in MyAccountService.
Why: Bot owners must be able to maintain the public identity of their bots without the API key of the bot. One command path gives humans, bots, owners, and account managers the same validation, events, and realtime updates. Custom status and presence describe the current activity of a person, so only that person sets them.
Tradeoff: This is an intentional pre-1.0 API break. Clients must move to UserService and send the target user ID, also for their own profile. An older bundled client cannot edit profiles on a newer server, and a newer bundled client cannot edit profiles on an older server. The bot profile editor appears only when the server supports this method.
18. Display names do not determine avatar support
Decision: Display names accept visible, single-line Unicode text. Fallback avatars select initials, emoji, a login initial, or a user icon independently of name validation. All accounts use the same neutral styling. Why: A display name is presentation text. Users need natural names, script joiners, and complete emoji. An avatar must work with these names without imposing username rules. Tradeoff: A fallback avatar cannot uniquely identify an account. The client continues to show the name and login where account identity matters.
19. Display names reject block mosaic characters
Decision: Display names reject Block Elements (U+2580–U+259F), Symbols for Legacy Computing (U+1FB00–U+1FBFF), and its Supplement (U+1CC00–U+1CEBF). User reads apply the current rules to stored names. A stored name that is not valid is shown as the login.
Why: A block mosaic glyph fills the complete character cell. Users combine these glyphs into pixel lettering that is about twice as tall as the surrounding text in messages, mentions, and member lists. Other decorative text, such as stylized letters, Box Drawing kaomoji, and Braille, keeps a normal text height and stays permitted. The read rule applies to all clients and bots and does not change stored events. @chatto/client applies the same rule to every user in API responses and realtime frames. Clients therefore also show the login for such names when they connect to an older server that does not apply the read rule.
Tradeoff: Users cannot use block shading characters, such as ▓▒░, for decoration. A user whose stored name is not valid sees the login until they set a new name.
Permissions
- Human or bot self-edit of an avatar — no explicit permission; only authentication.
- Human self-edit of display name, bio, custom status, settings, and own login (subject to cooldown) — no explicit permission; only authentication.
user.manage-accountsbypasses the holder's own login cooldown. - Profile or avatar edit of another human —
user.manage-accounts. - Clear a human user's login cooldown, including the caller's own cooldown — same gate.
- Bot profile or avatar edit — the authenticated bot, bot ownership,
user.manage-accounts, orbot.manage. A login change by the bot, its owner, or a bot manager checks and starts the cooldown of the bot;user.manage-accountsbypasses it. Bot custom-status and personal-settings edits are not supported.
Related
- ADRs: ADR-007 (per-user encryption with crypto-shredding), ADR-021 (dual asset storage), ADR-065 (runtime JSON client internationalization), ADR-087 (request-time authorization with aggregate OCC), ADR-089 (server content view), ADR-091 (semantic realtime events), ADR-101 (shared client user profiles)
- FDRs: FDR-001 (Roles & Permissions), FDR-008 (File Attachments & Video Processing), FDR-011 (User Presence), FDR-018 (Account Lifecycle), FDR-038 (Bot Accounts), FDR-045 (Realtime Event Stream)