Skip to content

feat(chat): adopt flipcash2 0.17.0 (group descriptions) - #1684

Merged
bmc08gt merged 2 commits into
code/cashfrom
chore/flipcash2-0.17.0
Oct 5, 2026
Merged

bmc08gt merged 2 commits into
code/cashfrom
chore/flipcash2-0.17.0

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 5, 2026 •

Copy link
Copy Markdown
Collaborator

Draft: blocked on the flipcash2-client-protocol 0.17.0 release (code-payments/flipcash2-client-protocol#24).

Adopts the 0.17.0 contract (group descriptions), with no UI:

  • ChatMetadata.description, null when empty, and MetadataUpdate.DescriptionChanged decoded from the event stream.
  • description on public and private StartChatParameters, sent only when non-null.
  • EditChatParameters.description takes a DescriptionEdit (Set or Clear); null leaves the wrapper unset, so "unchanged" stays distinct from "cleared".
  • DescriptionModerated(category) on StartChatError and EditChatError.
  • The description is persisted like the title: a nullable chat_metadata.description column (Room 41 → 42 auto migration), refreshed on upsert and updated from DescriptionChanged.

Not handled yet: no caller sends a description, and DescriptionModerated falls through to the generic error alert and reports as "Network" in analytics.

@bmc08gt bmc08gt self-assigned this Oct 5, 2026
@github-actions github-actions Bot added area: network gRPC, connectivity, API, exchange rates area: build-system Gradle, convention plugins, build-logic type: feature New functionality labels Oct 5, 2026
@bmc08gt
bmc08gt deleted the branch code/cash October 5, 2026 22:19
@bmc08gt bmc08gt closed this Oct 5, 2026
@bmc08gt bmc08gt reopened this Oct 5, 2026
@bmc08gt
bmc08gt changed the base branch from chore/flipcash2-0.16.0 to code/cash October 5, 2026 22:20
Map Metadata.description and MetadataUpdate.DescriptionChanged. Send a
description on public and private StartChat, and on EditChat through a
DescriptionEdit (Set or Clear) so leaving the description unchanged stays
distinct from clearing it. Map DESCRIPTION_MODERATED with its flagged
category for StartChat and EditChat.

Persist the description in a nullable chat_metadata.description column
(Room 41 -> 42 auto migration), refresh it from server payloads on upsert,
and apply DescriptionChanged from the event stream. An empty description
on the wire is stored as null.
@bmc08gt
bmc08gt force-pushed the chore/flipcash2-0.17.0 branch from c0438a0 to ce33bc9 Compare October 5, 2026 22:21
@bmc08gt
bmc08gt marked this pull request as ready for review October 5, 2026 22:25
@bmc08gt
bmc08gt merged commit d7a8a07 into code/cash Oct 5, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build-system Gradle, convention plugins, build-logic area: network gRPC, connectivity, API, exchange rates type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant