-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat(wasm): Import/export account #893
Conversation
Download the app installers for this pull request: |
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.
go to import > dont import > back > sign up > add name > error
Gravacao.do.ecra.2024-11-27.as.18.25.45.mov
chrome, macOS
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.
when i delete account no |
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.
lgtm. left a small comment and a suggestion
Though testing has been done by QA to confirm that importing and exporting does work, it is still a WIP to finish up other aspects of it as well as clearing up some additional bugs, hence why shuttle will be disabled by default for now while changes are being made. We could block this PR until it is done or we could merge it in with it disabled until. a dev flag is in place to enable or disable it.
Thoughts @phillsatellite @stavares843 @Flemmli97 ?
@@ -620,6 +620,30 @@ class MultipassStore { | |||
} | |||
} | |||
|
|||
async importAccount(passphrase: string, settings?: { to?: Uint8Array; multipassBox?: wasm.MultiPassBox }): Promise<Result<WarpError, wasm.Identity | undefined>> { | |||
let multipass = settings?.multipassBox ? settings.multipassBox : get(this.multipassWritable) |
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.
wouldnt it be best to use get(this.multipassWritable)
altogether?
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.
this is because atm during import a temp warp instance is created
i guess we could just remove using the stored instance though since that atm is never used? thoughts?
Co-authored-by: Darius Clark <[email protected]>
But that means no messages are available on the import |
The bug @stavares843 commented is now fixed. I put the blocked label until we get the remote import account working |
What this PR does 📖
Which issue(s) this PR fixes 🔨
Special notes for reviewers 🗒️
A lot of errors are due to wasm update which is handled in #868. I just didnt include the stuff in that pr here too. So ideally merge #868 first