talkjs / talkjs-flutter

Flutter SDK for the TalkJS Chat API
https://talkjs.com
BSD 3-Clause "New" or "Revised" License
9 stars 14 forks source link

No way to logout/end a session #44

Open silentl007 opened 1 year ago

silentl007 commented 1 year ago

I have been battling with this issue for days. There seems to be no way to end the current session so a user can start another session. The use case here is logging out. Once I log out, I want to be able to login back with my previous credential or a new one with a new talkjs session. Each time i try that i get a 'The me property has already been set for the Session object'. I have tried disposing the session, but I still cannot create a new session with a new .me property. Below is a snapshot of the code and error Flutter 3.10 talkjs_flutter 0.8.1

Screenshot (866)

bugnano commented 7 months ago

Try to create a new Session object instead.