Files
rustdesk/src/ui
RustDesk ab64a32f30 avatar (#14440)
* avatar

* refactor avatar display: unify rendering and resolve at use time

  - Extract buildAvatarWidget() in common.dart to share avatar rendering
    logic across desktop settings, desktop CM and mobile CM
  - Add resolve_avatar_url() in Rust, exposed via FFI (SyncReturn),
    to resolve relative avatar paths (e.g. "/avatar/xxx") to absolute URLs
  - Store avatar as-is in local config, only resolve when displaying
    (settings page) or sending (LoginRequest)
  - Resolve avatar in LoginRequest before sending to remote peer
  - Add error handling for network image load failures
  - Guard against empty client.name[0] crash
  - Show avatar in mobile settings page account tile

Signed-off-by: 21pages <sunboeasy@gmail.com>

* web: implement mainResolveAvatarUrl via js getByName

Signed-off-by: 21pages <sunboeasy@gmail.com>

* increase ipc Data enum size limit to 120 bytes

Signed-off-by: 21pages <sunboeasy@gmail.com>

---------

Signed-off-by: 21pages <sunboeasy@gmail.com>
Co-authored-by: 21pages <sunboeasy@gmail.com>
2026-03-04 21:43:19 +08:00
..
2026-03-04 21:43:19 +08:00
2023-10-07 17:26:20 +08:00
2026-03-04 21:43:19 +08:00
2026-03-04 21:43:19 +08:00
2022-12-25 19:23:03 +03:00
2022-03-28 19:05:12 +08:00
2022-12-25 19:23:03 +03:00
2022-02-01 02:38:52 +08:00
2026-03-04 21:43:19 +08:00
2022-05-12 17:35:25 +08:00
2024-08-08 22:07:06 +08:00
2025-04-30 17:23:35 +08:00
2021-12-25 16:45:22 +08:00
2025-03-27 15:34:27 +08:00
2023-01-31 09:28:33 +08:00
2025-03-27 15:34:27 +08:00