mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-09 09:35:55 +00:00
Both profile pickers get an "Add profile" row. It opens the existing CreateProfile form, which gains an optional submit callback, and hands the created profile to the picker's existing selection path - so the create flow and a row tap run the same code. ActiveProfilePicker's row handler is extracted to selectProfile() for that; the body is unchanged apart from indentation. The form opens in ModalManager.fullscreen: on desktop the other placements are panes, where center closes the chat the invitation is in and start and end leave the picker beside it usable while apiChangeConnectionUser invalidates the connection id. The list is refreshed after creating, because keepActiveUser skips the switch that would otherwise do it and nothing else re-lists, and the reassignment is skipped if the form was closed while the profile was being created, when close() would pop the picker instead.