mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-09-16 23:24:58 +00:00
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:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user