-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix/persisted native message system #11039
Conversation
const isAnyOfMessageSystemAffectingActions = isAnyOf(messageSystemActions.fetchSuccessUpdate); | ||
const isAnyOfMessageSystemAffectingActions = isAnyOf( | ||
messageSystemActions.fetchSuccessUpdate, | ||
deviceActions.selectDevice, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems, that there are also other actions that maybe should trigger the check - deviceChange, disconnect, forget, auth. Wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc @matejkriz
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- deviceChanged and auth are not relevant (no relevant change for available message system conditions can be updated)
- disconnect and forget would also trigger selectDevice if selected, but not relevant if not selected
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but definitelly I'm glad you asked 👍 ❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXED in 1b5794b
Have you found a way to test it? I've tried to test it locally with custom local config (simulating remote fetch failed) and I'm now facing this error:
ERROR [Error: Unable to resolve module ./suite-common/message-system/files/config.v1 from /Users/matejkriz/Projects/trezor-suite/suite-native/app/.:
None of these files exist:
* suite-common/message-system/files/config.v1(.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.mjs|.native.mjs|.mjs|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json|.android.cjs|.native.cjs|.cjs|.android.scss|.native.scss|.scss|.android.sass|.native.sass|.sass|.android.css|.native.css|.css)
But I believe it should work... #7936 (comment)
@tomasklim please check 1b5794b I know it's not great, but hopefully not terrible? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/rebase |
- Conditional import for some reason start using wrong base path on mobile. Regular import on top of the file fix the issue. - Potential downside is that local config is fully bundled in the code so it can increase bundle size on web.
1b5794b
to
c200b55
Compare
Description
Related Issue
Resolve #10979