Files
simplex-chat/apps
Narasimha-sc f940796aaa android, desktop: make the form's submit callback optional, as iOS already does
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.
2026-08-06 18:22:56 +00:00
..