Skip to content

feat(chat): show end-to-end encryption status in DMs and groups - #1618

Merged
bmc08gt merged 6 commits into
code/cashfrom
feat/e2ee-dm-ui
Sep 29, 2026
Merged

bmc08gt merged 6 commits into
code/cashfrom
feat/e2ee-dm-ui

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

The UI for end-to-end-encrypted DMs, with no crypto behind it yet. Everything reads use_e2ee through E2eePolicy, so there's one place that decides whether a chat encrypts.

  • DM profile footer. Says messages are end-to-end encrypted when the policy says the chat is. Group Info always says group chats aren't. The footer is the scaffold's bottom bar, so it stays put while the rows scroll.
  • Learn More sheets. What is and isn't encrypted, one for DMs (node 10416:1533) and one for groups (node 10557:1412). BulletRow moves from the contacts rationale into :ui:components for this, with a spacing parameter; existing callers keep grid.x2.
  • Unreadable-message bubble. An EncryptedContent message used to render as an "unsupported on this version" tombstone. It's now a dashed bubble reading "This message can't be displayed" (node 10416:1576). The line underneath is an UndecryptableHint; only "Update Flipcash to see it" is produced here, and the stacked PR adds the resend hints.

E2eeScreenshotTest and UndecryptableBubbleScreenshotTest render the profiles, both sheets and the bubble with each hint to build/screenshots/ for comparison with nodes 10557:1304, 10557:1643, 10416:1533, 10557:1412 and 10416:1576.

Phase 2, the encryption itself, is stacked on this branch.

The E2EE learn-more sheet lists its items with the same icon-and-line
row the contacts rationale uses. Moved as-is, with a spacing parameter
for the sheet's 12dp gap; existing callers keep grid.x2.
DM profiles get a footer saying messages are end-to-end encrypted when
E2eePolicy says the chat is; Group Info always says group chats aren't.
Learn More opens a sheet listing what is and isn't encrypted, one for
DMs (node 10416:1533) and one for groups (node 10557:1412).

The footer is the scaffold's bottom bar rather than MenuList's footer,
so it stays at the bottom while the rows scroll. ChatViewModel maps the
chat's metadata through E2eePolicy, which stays the only reader of
use_e2ee; the policy gains an @Inject constructor for that.
An encrypted message used to render as a tombstone saying it isn't
supported on this version. It now matches node 10416:1576: a dashed
bubble with "This message can't be displayed" and "Update Flipcash to
see it" underneath.

The line underneath is an UndecryptableHint, so decryption can add
"Ask {first name} to send it again" and "Try sending it again" for
messages that fail to open. Only UpdateApp is produced for now.
The DM profile with its footer on, Group Info, both learn-more sheets and the
unreadable-message bubble with each hint, written to build/screenshots/ for
comparison with nodes 10557:1304, 10557:1643, 10416:1533, 10557:1412 and
10416:1576. Same Robolectric mechanics as ChatIdentityScreenshotTest; the
profiles are built from the screens' scaffold, header, rows and footer because
the screens take their view models.
Three of the new strings used ’ while the group footer used ', which is what
most of strings.xml uses.
@bmc08gt bmc08gt self-assigned this Sep 29, 2026
@github-actions github-actions Bot added the type: feature New functionality label Sep 29, 2026
@github-actions github-actions Bot added area: ui Compose UI, theme, components, resources area: network gRPC, connectivity, API, exchange rates area: onboarding labels Sep 29, 2026
@bmc08gt
bmc08gt merged commit ae4e32e into code/cash Sep 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: network gRPC, connectivity, API, exchange rates area: onboarding area: ui Compose UI, theme, components, resources type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant