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

Revised user id logic. #1590

merged 1 commit into from May 22, 2019


None yet
2 participants
Copy link

commented May 22, 2019

This PR implements the following behavior:

  1. Gets rid of default id (unnecessary because the emulator initializes with a GUID on startup anyway)
  2. Starting a conversation will use the custom id defined in settings or it will fallback to a GUID
  3. Restarting with a new id will start with a new GUID no matter what
  4. Restarting with the same id will start with whatever id was being used before (could be previous custom id, or GUID)

NOTE There is one case in which the above logic does not hold. When previously using a custom userId, and then clearing it out in the settings page, and then starting a new conversation, that previous custom user id is still used. This is because it was set as both the previous id and the custom id, so the logic falls back to the previous id.

Due to the fragility and complexity of the start conversation logic, I feel that it's not worth it to try to accommodate this case because it is easily avoided by restarting the conversation again with a new user id. We also have plans in the near future to simplify this logic, so we can implement this behavior at that time.

Copy link

left a comment


@tonyanziano tonyanziano merged commit a562689 into master May 22, 2019

3 checks passed

Emulator-CI-PR #60812 succeeded
[experimental]Upload-package.json #60813 succeeded
license/cla All CLA requirements met.

@tonyanziano tonyanziano deleted the toanzian/id-fix branch May 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.