Skip to content
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

engine: bugfix for user switching #1474

Merged
merged 1 commit into from
Dec 4, 2015
Merged

Conversation

maxtaco
Copy link
Contributor

@maxtaco maxtaco commented Dec 4, 2015

intro'ed in bdfde6a

@maxtaco
Copy link
Contributor Author

maxtaco commented Dec 4, 2015

PTAL: @oconnor663

@@ -44,6 +44,10 @@ func (e *LoginCurrentDevice) SubConsumers() []libkb.UIConsumer {

// Run starts the engine.
func (e *LoginCurrentDevice) Run(ctx *Context) error {
e.G().Log.Debug("+- LoginCurrentDevice.Run")
defer func() {
e.G().Log.Debug("- LoginCurrentDevice.Run")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

debugging, sweet sweet debugging!

@maxtaco maxtaco force-pushed the maxtaco/fix-user-change-bug branch from b8672a0 to fbcf92e Compare December 4, 2015 03:40
if err != nil {
e.G().Log.Debug("error loading user profile: %#v", err)
return err
}
if !me.HasDeviceInCurrentInstall() {
if !me.HasDeviceInCurrentInstall(did) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

can't pull the global device here, have to pull the one you want to talk about

@oconnor663
Copy link
Contributor

Looks good!

- intro'ed in bdfde6a
- pass in the correct user to LoadUser
- also pass in the right device ID
@maxtaco maxtaco force-pushed the maxtaco/fix-user-change-bug branch from ca1e665 to d48345c Compare December 4, 2015 22:15
maxtaco added a commit that referenced this pull request Dec 4, 2015
@maxtaco maxtaco merged commit 3706a22 into master Dec 4, 2015
@maxtaco maxtaco deleted the maxtaco/fix-user-change-bug branch December 4, 2015 22:15
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.

2 participants