Skip to content

chore(contract): sync flipcash2 protos to 0b56e3cd - #7

Merged
bmc08gt merged 2 commits into
mainfrom
chore/sync-flipcash2-0b56e3cd
Sep 3, 2026
Merged

chore(contract): sync flipcash2 protos to 0b56e3cd#7
bmc08gt merged 2 commits into
mainfrom
chore/sync-flipcash2-0b56e3cd

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Syncs to flipcash2-protobuf-api@0b56e3cd — "Add message_{edit,delete}_window to UserFlags (#89)", one commit ahead of the previous pin 0300d252.

Contract change

proto/account/v1/flipcash_account_service.proto is the only proto that moved (+6/-0). Two fields appended to message UserFlags:

  • google.protobuf.Duration message_edit_window = 17 — the window after a message is created during which it can still be edited
  • google.protobuf.Duration message_delete_window = 18 — the same, for deletion

Nothing else changed. No services, RPCs, or messages were added, removed, or reshaped, no result enum gained or reordered a case, and nothing was renumbered: username_min_balance keeps field 16 and every field before it keeps its number.

Both fields are message-typed, so they carry explicit presence. An unset value is not a zero-length window, and the changelog entry tells consumers to check hasMessageEditWindow / hasMessageDeleteWindow before reading either one.

Generated Swift moved only in account_v1_flipcash_account_service.pb.swift (+36 lines): the two accessors, their presence checks and clear methods, the storage fields, the name-map entries, and the decode/traverse/equality cases for 17 and 18. scripts/toolchain.env is untouched, so none of that churn is toolchain drift.

Release

Targets 0.4.0, which is not yet tagged. The matching CHANGELOG.md section is in this branch, so publish.yml has release notes to extract.

Consumers

Both app PRs are drafts. They pin 0.4.0, which does not exist until this merges and publish.yml runs, so neither can go green before then — app CI never sees the local override that both were developed against.

Adds message_edit_window and message_delete_window to UserFlags as optional
google.protobuf.Duration fields at 17 and 18. Purely additive -- no existing
field or enum case moves.
@bmc08gt bmc08gt self-assigned this Sep 3, 2026
@bmc08gt
bmc08gt merged commit 27e3f09 into main Sep 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant