Log out, then log in as different user still shows old buddies
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.
Also we need to clean up the same state in the app (Social.networks.google.roster looks wrong)
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...)
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.
Let's have that as a separate issue: https://github.com/uProxy/uProxy/issues/263
If user from buddy list goes offline it still shows up on buddylist. Seems related.
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