uProxy-p2p icon indicating copy to clipboard operation
uProxy-p2p copied to clipboard

Log out, then log in as different user still shows old buddies

Open dborkan opened this issue 12 years ago • 6 comments

If I log in as User A, then log out, and log in as User B, when the buddylist appears again it still shows User A's buddies. We need to clear the buddylist and any associated data structures (e.g. model.roster) after log out.

dborkan avatar Jun 27 '14 15:06 dborkan

Also we need to clean up the same state in the app (Social.networks.google.roster looks wrong)

dborkan avatar Jun 27 '14 16:06 dborkan

And many other fields are also left in a weird state after logout (ui.user still shows the last user you were focused on, ui.myName is your old name, no doubt there are others...)

dborkan avatar Jun 27 '14 16:06 dborkan

Something related to consider: in terms of the code (regardless of whether we expose this in the UI) it would be cool if we could log into 2 different Google Accounts at the same time (the same way users could be logged into multiple different social networks at the same time). This would require a bunch of refactoring but that refactoring would likely make it easier to fix these bugs.

dborkan avatar Jun 27 '14 18:06 dborkan

Let's have that as a separate issue: https://github.com/uProxy/uProxy/issues/263

iislucas avatar Jun 27 '14 19:06 iislucas

If user from buddy list goes offline it still shows up on buddylist. Seems related.

salomegeo avatar Sep 30 '14 18:09 salomegeo

Yes might be related. Also if you log off, then log in again even as the same user there are some bugs :( Basically we don't clean up enough on log out, the bug is just most obvious when you switch accounts

dborkan avatar Sep 30 '14 18:09 dborkan