Repository navigation
Preserve bot ownership, channel rights, and custom verification across responses - #180
Merged
iamxvbaba merged 2 commits intoNov 17, 2026
Merged
Conversation
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.
Peer objects returned with message histories and updates could replace client-cached bot ownership, channel administrator rights, and custom verification flags with incomplete state. Opening the profile would restore the flags until another response arrived.
This change finalizes user/chat identity decorations at the canonical RPC response boundary, including user vectors and peer-bearing envelopes. Shared response/push helpers project bot ownership for the actual viewer, using batched profile loading when available. Bot management is never granted to other viewers.
Bot users with unknown ownership and channel rows without viewer membership use minimal peer objects. Full linked-channel updates required to clear disabled direct-message links resolve the recipient's membership before including permissions; monoforums retain their special full-state projection.
Wire-roundtrip regression tests cover alternating owner/stranger responses, users/messages/updates envelopes, supplemental channel verification, and minimal versus complete channel permissions.
Validation on this upstream-based branch with Go 1.26.11:
go test ./... -count=1go vet ./internal/rpcgit diff --checkPostgreSQL-dependent and live Compose tests were skipped locally because their services are unavailable.
Ported from xirogram#8 onto this repository's current main branch; no fork-specific schema, custom banner RPCs, or dependency replacement is included.