Skip to content

fix(profile): drop Open Chat when the profile was opened from that chat - #1733

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/profile-hide-open-chat-from-chat
Oct 8, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/profile-hide-open-chat-from-chat

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

Back already returns to the chat, so the pinned Open Chat button on a profile opened from that chat only repeats it.

Group profile, opened from its chat

  • No pinned bar. Leave Chat moves to the end of the scroll and holds to the bottom when the page is short (heightIn(min = maxHeight) plus a weighted spacer).
  • "Opened from the chat" is flowNavigator.canGoBack, read once with remember. Back pops the stack before the screen finishes animating out, so a live read brought the bar back during the exit.
  • Opened with nothing underneath (openOnProfile), it keeps Open Chat and Leave Chat pinned as before.

User profile

  • Open Chat is hidden only when the DM with that person is the chat underneath (opensChatUnderneath in ProfilePinnedAction.kt, covered in ProfileActionsTest). A member's portrait in a group still offers Open Chat, since that DM isn't the chat you came from.
  • The encryption note is no longer part of the pinned bar. It sits at the end of the scroll and holds to the bottom of a short page.

Bottom edge

  • With nothing pinned, BottomScrollEdge gives the bottom the same progressive blur as TopScrollEdge, and it clears once the scroll reaches the end.

Back already returns to the chat, so the pinned Open Chat button only
repeats it.

Group profile opened from its chat: no pinned bar. Leave Chat moves to
the end of the scroll and holds to the bottom when the page is short.
Whether the chat is underneath is read once, because back pops the stack
before the screen animates out and a live read brought the bar back for
the exit. A group profile opened with nothing underneath keeps Open Chat
and Leave Chat pinned.

User profile: Open Chat is hidden only when the DM with that person is
the chat underneath, so a member's portrait in a group still offers it.
The encryption note now always sits in the scroll and holds to the
bottom of a short page.

With nothing pinned, the bottom edge gets the same progressive blur as
the top (BottomScrollEdge).
@bmc08gt bmc08gt self-assigned this Oct 8, 2026
@github-actions github-actions Bot added type: fix Bug fix area: ui Compose UI, theme, components, resources and removed type: fix Bug fix labels Oct 8, 2026
@bmc08gt
bmc08gt merged commit 0f62640 into code/cash Oct 8, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: ui Compose UI, theme, components, resources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant