Skip to content

Keep owner wallet access visible at zero balance - #31532

Draft
PavelMurachev wants to merge 1 commit into
telegramdesktop:devfrom
PavelMurachev:fix/own-wallet-profile-entry
Draft

PavelMurachev wants to merge 1 commit into
telegramdesktop:devfrom
PavelMurachev:fix/own-wallet-profile-entry

Conversation

@PavelMurachev

@PavelMurachev PavelMurachev commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

The owner's profile currently treats an absent wallet card as zero and hides both. This keeps a valid zero-balance card visible to its owner and provides an entry to the existing wallet window when the public card is absent but the owner's private wallet state is Ready and wallet_available is enabled. Existing cards continue to open the card view; other users' profile behavior is preserved.

The change distinguishes an absent balance from a valid zero. It uses the existing Receive/Add Funds flow and does not add a privacy setting, provision a missing wallet, or override server availability.

Validation: extracted production C++ fragments compiled with GCC 16.2.0, C++20, warnings as errors, Qt Widgets 6.11.2 and pinned rpl libraries. Component checks passed 600 state combinations and 3,320 assertions covering visibility, click routing, account isolation, state changes and subscription teardown. The original-code control fails the owner-zero expectation. Patch applicability and whitespace checks passed. Reproduction, evidence and exact test scope.

Draft for confirmation of the intended owner-only profile behavior. The checks use synthetic session/data/painting adapters; full production translation units and the Telegram application have not been built. Full Debug integration, visual/accessibility review and real-account validation remain pending. The reporter's missing wallet entry has not been reproduced with an identified app version, and may also depend on server provisioning or availability.

The separate API/product proposal covers owner-initiated setup and server-enforced wallet association privacy; those changes are not implemented in this PR.

Platform discussion is published as Telegram suggestion #67181 — Let owners access empty Gram wallets and control wallet visibility in profiles. The card links back to this PR and the API proposal.

This branch has not been deployed

No deployments
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