mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-12 21:45:55 +00:00
ios: disable self-destruct on LA mode change to "system", create new profile with past timestamp (#2416)
This commit is contained in:
committed by
GitHub
parent
63f344bde6
commit
df4e954f8a
@@ -125,8 +125,8 @@ func apiGetActiveUser() throws -> User? {
|
||||
}
|
||||
}
|
||||
|
||||
func apiCreateActiveUser(_ p: Profile?) throws -> User {
|
||||
let r = chatSendCmdSync(.createActiveUser(profile: p))
|
||||
func apiCreateActiveUser(_ p: Profile?, sameServers: Bool = false, pastTimestamp: Bool = false) throws -> User {
|
||||
let r = chatSendCmdSync(.createActiveUser(profile: p, sameServers: sameServers, pastTimestamp: pastTimestamp))
|
||||
if case let .activeUser(user) = r { return user }
|
||||
throw r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user