SUMMARY A very strange display issue. After authorizing a Mastodon account, all seems well. However, if I close and re-open the app, and click "Switch User", there are now two versions of that account, and I'm able to switch back and forth between them. If I delete one of them, things seem okay until the next time I close and re-open the app. At that point ALL of my accounts are logged out, not just the one I clicked "Log Out" for. STEPS TO REPRODUCE 1. Authorize an account. 2. Close Tokodon. 3. Re-open Tokodon. 4. Check the Switch User menu. OBSERVED RESULT One or more accounts are duplicated in the Switch User menu. EXPECTED RESULT Each authorized account appears once. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Kubuntu 22.04 Operating System: Kubuntu 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 ADDITIONAL INFORMATION This affects all accounts, not just the first one added.
I can confirm this happens, and I'm building in stronger safeguards in the next release to prevent this from happening. Can you confirm that the accounts show up normally after logging back in?
(In reply to Joshua Goins from comment #1) > I can confirm this happens, and I'm building in stronger safeguards in the > next release to prevent this from happening. Can you confirm that the > accounts show up normally after logging back in? Yes, they are normal again after logging back in.
Created attachment 157952 [details] I logged in with three accounts. Tokodon showed six items.
A possibly relevant merge request was started @ https://invent.kde.org/network/tokodon/-/merge_requests/229
Git commit 0c7176debb260079fc1123a3bd899a1ca17c16c7 by Carl Schwan, on behalf of Joshua Goins. Committed on 14/05/2023 at 11:26. Pushed by carlschwan into branch 'release/23.04'. Squash yet another duplicate accounts bug Sometimes when we write to settings, it can happen before we even set the username and other important information. Now let's try to stop writing malformed settings because they are going to be useless anyway. This prevents another instance where many duplicate accounts can form. (cherry picked from commit 19885f303bbb6c8c5f3edc35c27e502775f6132c) M +6 -0 src/account.cpp https://invent.kde.org/network/tokodon/commit/0c7176debb260079fc1123a3bd899a1ca17c16c7