mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-14 09:20:28 +00:00
CreateProfile took a required onSubmit, so both existing call sites had to change and a createProfileFromForm helper existed only to give them somewhere to delegate. The iOS port of the same change made the callback optional and touched no existing call site; this does the same. UserPicker and UserProfilesView drop out of the diff, the helper goes, and the branch the form always had stays where it was, behind a null check. The trade is that chatModel and close stay parameters even though the invitation path uses neither, and the callback is nullable. That is the price of not touching two unrelated files, and it is the shape iOS already ships. Easy to reverse if the cleaner signature is preferred.