switching accounts fails / wrong username shown in account switcher
Steps to reproduce
there exist 2 users: userA and userB
- login with userA
- go to account switcher
- BUG: avatars are shown correctly, but userA has the name of userB
- keep userA selected. go to some conversation and send a message
- BUG: message is sent as userB
- go back to account switcher and select userB
- go to the conversation and send a message
- BUG: message is sent as userA
this doesn't always happen but sometimes.
Expected behaviour
- names in account switcher match the avatars
- actions are not executed as another user
i guess this is caused by the room migration..
Device information
Talk version: master (>= 14.2.0 Alpha 02)
Server information
sermo
@mahibi are both users on the same server or different ones? I tested with 3 users on 3 servers and don't have an issue there.
both on the same server (sermo)
just reproduced this with 14.1.0 RC2 ! this time the names in the account switch dialog were correct but the messages were still send as the wrong user!
i debugged talk app 14.1 RC2 (on sermo, 25.0.0.3) and i see that all information is sent correctly, but somehow the response says it's from an other user. (i send the message "Test22" as user "marcel2", but the response says it's from "Marcel")

So i suspect it's an error on server side.. any ideas @nickvergessen ?
@mahibi but it works with 14.0.2 - no?
same error with talk app 14.0.2 on sermo. so either i proved it's a bug present in the app or (which i assume as described) on sermo... now trying with older servers..
same error with 14.0.0 with personal server on 24.0.2 while it works fine with 13.0.0 so it is not the DB technology switch but something else.
--> issue must be client side
as expected, and now approved: this happens only for accounts that are on the same server. So this should not affect too many users, anyway it's a serious bug.
Some thinking and digging broad me to testdriving cookie clearing, see #2229 which leads to the correct expected results whenever you clear all cookies before the next server call, seems the server's response resets the cookie state to a "wrong" one, so without clearing all follow-up server calls are wrong again.
@jld3103 was able to reproduce this once! So we tried again but now fail to reprduce it another time...
Talk app version 15.1.0 Alpha 03 tested with 2 accounts on the same localhost
fyi @AndyScherzinger
never experienced this again. closing..