Repository navigation
feat(chat): scaffold flipcash2 0.22.0 group invites - #1863
Merged
Merged
Conversation
Wrap CreateInvite, GetInvite, GetChatInvites and RevokeInvite through api, service, repository and controller. JoinChat takes optional invite parameters and maps INVITE_NOT_FOUND/EXHAUSTED/EXPIRED/REVOKED. GetRoster accepts an invite token with the owner optional. GetKeyEnvelope now branches on envelopeCase: an invite key bundle fails with GetKeyEnvelopeError.InviteKeyBundleOnly instead of reading a default KeyEnvelope, and wrapped_by_public_key is carried on StoredKeyEnvelope. Adds Invite domain models, ViewerState.Permissions.canInvite, and the invited join system event (persisted alongside admittedBy). Invite crypto and UI are not included.
bmc08gt
marked this pull request as ready for review
October 27, 2026 19:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapts the app to the flipcash2
0.22.0contract (group invites), from code-payments/flipcash2-client-protocol#30. It adds no UI and no invite crypto.Pins
flipcash2-client-protocol0.22.0inlibs.versions.toml, in the last commit.CreateInvite,GetInvite,GetChatInvitesandRevokeInvitego throughChatApi→ChatService→ChatRepository→ChatController. Domain models are inmodels/chat/Invite.kt;InviteToken.toString()is redacted.JoinChat: takes optionalInviteParameters.JoinChatErrorgainsInviteNotFound,InviteExhausted,InviteExpiredandInviteRevoked.GetRoster: takes an optional invite token, andowneris now nullable. The API layer requires one of the two.GetKeyEnvelope: branches onenvelopeCase. Aninvite_key_bundlefails withGetKeyEnvelopeError.InviteKeyBundleOnly(bundle)instead of decoding as an emptyKeyEnvelope.StoredKeyEnvelopealso carrieswrappedByPublicKey.ViewerState.Permissions.canInvite: mapped, but not persisted to Room.canSilenceandcanBanaren't either.SystemEvent.UserJoined: gainsinvitedBy, persisted throughMessageContentSerialized. Old rows decode with null. The message still renders as a plain join.The username limit stays at 15. The contract now allows 30, but the handle regex,
@mentiondetection and the deeplink path filters inAndroidManifest.xmlall assume 15, so that needs its own change.