mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-11 20:27:39 +00:00
ComposeContextProfilePickerView.changeProfile called changeActiveUser_ outside both 'updated != null' branches, so when apiChangePreparedContactUser or apiChangePreparedGroupUser returned null the chat stayed on the old profile but the active user was switched anyway: the API showed "Error changing profile", and then the profile switched regardless. The prepared chat is then left behind on a profile the user is no longer on. Kotlin only: the iOS twin throws instead of returning null, so its outer catch already skips the switch.