core, ui: strip PR comments, fix Android profile-for-invitation issues

- remove all comments introduced by this PR across the touched files,
  per review decision
- fix the "New Profile" row being hidden behind the bottom app bar in
  one-handed UI mode once the profile list grows long enough to reach it
- stop force-setting connChatUsed on reassignment, so the "keep unused
  invitation?" prompt correctly fires for a genuinely unused invitation
- fix NewChatView's contactConnection state going stale after a
  reassignment (it never reflected the new connection), causing both
  the keep/delete decision and any later picker reopen to reference an
  already-superseded connection
This commit is contained in:
Narasimha-sc
2026-09-01 17:29:28 +00:00
parent 5c4650b98b
commit 0853b5919c
8 changed files with 7 additions and 183 deletions
-4
View File
@@ -280,10 +280,6 @@ func apiGetActiveUser(ctrl: chat_ctrl? = nil) throws -> User? {
}
}
/// keepActiveUser creates the profile *without* activating it, for the invitation
/// pickers: the reassignment APIs resolve the prepared chat or connection under the active
/// user, so the profile that owns it has to stay active until it has moved. The response
/// is the created user either way, which is then not the active one.
func apiCreateActiveUser(_ p: Profile?, pastTimestamp: Bool = false, keepActiveUser: Bool = false, ctrl: chat_ctrl? = nil) throws -> User {
let r: ChatResponse0 = try chatSendCmdSync(.createActiveUser(profile: p, pastTimestamp: pastTimestamp, keepActiveUser: keepActiveUser), ctrl: ctrl)
if case let .activeUser(user) = r { return user }