Skip to content

chore: rename state and add methods to preferences controller to match already patchede code#6707

Merged
bergarces merged 22 commits into
mainfrom
preferences-controller-updates
Sep 24, 2025
Merged

chore: rename state and add methods to preferences controller to match already patchede code#6707
bergarces merged 22 commits into
mainfrom
preferences-controller-updates

Conversation

@bergarces
Copy link
Copy Markdown
Contributor

@bergarces bergarces commented Sep 24, 2025

Explanation

Adds the missing non-nft related changes of the mobile client patch to the repo.

https://github.com/MetaMask/metamask-mobile/blob/main/patches/%40metamask%2Bpreferences-controller%2B18.4.0.patch

With this PR, the @metamask/preferences-controller patch on mobile can be removed completely.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

@bergarces bergarces requested review from a team as code owners September 24, 2025 13:11
@bergarces bergarces changed the title Preferences controller updates chore: rename state and add methods to preferences controller to match already patchede code Sep 24, 2025
- **BREAKING:** Rename `openSeaEnabled` to `displayNftMedia` ([#4774](https://github.com/MetaMask/core/pull/4774))
- **BREAKING:** Rename `setOpenSeaEnabled` to `setDisplayNftMedia` ([#4774](https://github.com/MetaMask/core/pull/4774))
- **BREAKING:** Rename controller state property from `useMultiRpcMigration` to `showMultiRpcModal` ([#6707](https://github.com/MetaMask/core/pull/6707))
- **BREAKING:** Rename controller method from `setUseMultiRpcMigration` to `setShowMultiRpcModal` ([#6707](https://github.com/MetaMask/core/pull/6707))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These breaking changes are already patched in the mobile client, so adding them here means we can remove the patch completely after updating to this version.

Comment thread packages/preferences-controller/CHANGELOG.md Outdated
Co-authored-by: Elliot Winkler <elliot.winkler@gmail.com>
Copy link
Copy Markdown
Contributor

@mcmire mcmire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@bergarces bergarces merged commit f8c4c8a into main Sep 24, 2025
239 checks passed
@bergarces bergarces deleted the preferences-controller-updates branch September 24, 2025 14:01
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.

4 participants