Fix profile switch on up and android comments

This commit is contained in:
Theodor S. Midtlien
2026-06-03 18:41:08 +02:00
parent 6318994e43
commit 1ba5d201db
2 changed files with 7 additions and 7 deletions

View File

@@ -288,8 +288,8 @@ func doDaemonUp(ctx context.Context, cmd *cobra.Command, client proto.DaemonServ
return fmt.Errorf("setup login request: %v", err)
}
handle := activeProf.ID.String()
loginRequest.ProfileName = &handle
profileID := activeProf.ID.String()
loginRequest.ProfileName = &profileID
loginRequest.Username = &username
profileState, err := pm.GetProfileState(activeProf.ID)
@@ -329,7 +329,7 @@ func doDaemonUp(ctx context.Context, cmd *cobra.Command, client proto.DaemonServ
}
if _, err := client.Up(ctx, &proto.UpRequest{
ProfileName: &profileName,
ProfileName: &profileID,
Username: &username,
}); err != nil {
return fmt.Errorf("call service up method: %v", err)