mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-18 13:00:14 +00:00
ModalView's Back handler and back arrow were live while the profile was
being created, so Back/Esc closed the form between creation and the
reassignment: profile created, invitation never moved, nothing said, and
the next attempt at the same name fails as a duplicate. Gate them on the
in-flight flag, as MigrateFromDevice and ChooseServerOperators do, which
is the Kotlin equivalent of iOS's interactiveDismissDisabled.
Move the chatModel.users registration above the stale-host branch, matching
what iOS got in 54e2fac3d: changeActiveUser_ throws before its own refresh,
so the block below the early return never ran.
Also fix the incognito twin of a bug this branch already fixes on iOS: with
no connection to change, profileSwitchStatus stayed .switchingIncognito and
left the whole picker dead. Pre-existing, but immediate now that hit testing
keys on the status rather than the delayed spinner flag.