RustDesk/flutter/lib
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
..
common avatar (#14440) 2026-03-04 21:43:19 +08:00
desktop avatar (#14440) 2026-03-04 21:43:19 +08:00
mobile avatar (#14440) 2026-03-04 21:43:19 +08:00
models avatar (#14440) 2026-03-04 21:43:19 +08:00
native fix: web, reset cursor on disconn, back to main page (#9192) 2024-08-27 23:58:04 +08:00
plugin refact: optimize, ID search peers (#10853) 2025-02-20 18:31:12 +08:00
utils feat: Add relative mouse mode (#13928) 2026-01-09 10:03:14 +08:00
web avatar (#14440) 2026-03-04 21:43:19 +08:00
common.dart avatar (#14440) 2026-03-04 21:43:19 +08:00
consts.dart keep-awake-during-incoming-sessions (#14082) 2026-01-21 16:25:57 +08:00
main.dart feat: advanced option, main window, always on top (#12731) 2025-08-26 00:15:55 +08:00