-
Notifications
You must be signed in to change notification settings - Fork 199
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
Using ChatViewController second time doesn't work #3
Comments
@mpodeszwa thanks for the reporting. I'll check your logout/login issue. For now the Client is used as a shared instance and it will be in memory after logout. It holds web socket and other needed objects. |
@mpodeszwa I've tested logout and login in the example project and it works without any issues. How are you doing logout? Could you send me all logs? |
why was this closed? |
@mpodeszwa Please, check a new version 1.2.6 |
@buh Thanks, it's now working as expected 👍 |
What did you do?
I created ChatViewController using code:
Chat is being presented to the user after logging in to the application. When user enters the app chat is working properly. However, when he logs out and logs back in (to the same account or a different one) chat is not loading.
What did you expect to happen?
Chat is working every time.
What happened instead?
Second ChatViewController never gets refreshed
GetStream Environment
GetStream Chat version: 1.2.5
iOS version: 12.4
Swift version: 5.0.1
Xcode version: 10.3
Device: iPhone Xs
Additional context
There are some logs.
First time ChatViewController is created:
Logging out:
Logging back in to the same account (same channel id, different instances of ChatViewController and ChatPresenter):
Additional info:
There are no memory leaks, however I can see instances of following types still existing after logging out:
The text was updated successfully, but these errors were encountered: