mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-15 02:40:18 +00:00
The Swift side had been minimised least: 57 of its added lines were comments, several of them restating what the line below does or narrating what an earlier attempt got wrong. Kept the ones that record a non-obvious why - why the sheet hangs off the Group, why the check-and-set is atomic, why the resync is not rethrown, why the alert is deferred - and cut the rest. Also tried making changeProfile async so the create flow could await it and the existing creatingProfile flag would cover the reassignment, removing changingProfile entirely. It reads better but it takes changeProfile out of its Task and re-indents the whole function, which costs more diff than the flag it saves. Not done.