You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0aad8ee
Browse filesBrowse the repository at this point in the historyBrowse files
fix(mobile): preserve authored label padding and self-DM avatar keying
PR-M1 review follow-up (#7493): exact-head re-review findings on
25a93bb.
## Summary
- dm_channel_labels.dart: dmAvatarInitial's exhausted-participant
fallback now splits the two cases — no participant pubkeys keeps the
first-participant-label fallback, while all-self WITH keys (a
self-DM) resets index 0 and reuses the shared name/key provenance
rule below. A self-DM tile keyed to the current user's hex key now
shows that key's initial (B) beside its compact-npub label, instead
of the label's leading N.
- user_profile.dart: label trims only to judge blankness and returns
the authored displayName when nonblank, so authored padding survives
(' Carol ' renders ' Carol ', not 'Carol'); initial is unchanged and
still reads the trimmed padding.
- user_profile_test.dart: the ' Carol ' case expects the padded label
with initial C.
- channels_page_test.dart: the named-second fixture is Dana on the
b0b key and asserts D, proving the authored name — not the key —
sources the initial; a new self-DM tile case keys the fake profile
and participant pubkeys to b0b and asserts the compact-npub label
plus the B avatar. The fake profile notifier gains a pubkey knob for
that one case; no other fixture changes.
Full suite: 2096 passing. flutter analyze clean, dart format clean.
Co-authored-by: Larry <627498bd4bd1f281a16431e3c6cce3b5c25b6692798c78672298aefbf2f8f8b5@buzz.block.builderlab.xyz>
Signed-off-by: Logan Johnson <[email protected]>
0 commit comments