stream-chat-android
stream-chat-android copied to clipboard
[ISSUE-3972] Switch User 2
🎯 Goal
Add function to switch users. ChatClient.switchUser.
🛠 Implementation details
Events of disconnection are being handled synchronously instead of async. Then the connection of a new user only happens when the SDK already fully disconnected with the previous user.
🎨 UI Changes
https://user-images.githubusercontent.com/10619102/184191580-2bda483d-02d3-43be-aaa8-d68fcec431fc.mov
🧪 Testing
Switch users with or without internet.
☑️Contributor Checklist
General
- [x] I have signed the Stream CLA (required)
- [x] Assigned a person / code owner group (required)
- [x] Thread with the PR link started in a respective Slack channel (#android-chat-core or #android-chat-ui) (required)
- [x] PR targets the
developbranch - [x] PR is linked to the GitHub issue it resolves
Code & documentation
- [x] Changelog is updated with client-facing changes
- ~[ ] New code is covered by unit tests~
- [x] Comparison screenshots added for visual changes
- [x] Affected documentation updated (KDocs, docusaurus, tutorial)
☑️Reviewer Checklist
- [ ] UI Components sample runs & works
- [ ] Compose sample runs & works
- [ ] UI Changes correct (before & after images)
- [ ] Bugs validated (bugfixes)
- [ ] New feature tested and works
- [ ] Release notes and docs clearly describe changes
- [ ] All code we touched has new or updated KDocs
🎉 GIF
