mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 05:24:44 +00:00
core: use batch connection deletion api (#1814)
This commit is contained in:
@@ -145,8 +145,8 @@ func apiSetActiveUser(_ userId: Int64) throws -> User {
|
||||
throw r
|
||||
}
|
||||
|
||||
func apiDeleteUser(_ userId: Int64) throws {
|
||||
let r = chatSendCmdSync(.apiDeleteUser(userId: userId))
|
||||
func apiDeleteUser(_ userId: Int64, _ delSMPQueues: Bool) throws {
|
||||
let r = chatSendCmdSync(.apiDeleteUser(userId: userId, delSMPQueues: delSMPQueues))
|
||||
if case .cmdOk = r { return }
|
||||
throw r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user