core: use batch connection deletion api (#1814)

This commit is contained in:
JRoberts
2023-01-24 16:24:34 +04:00
committed by GitHub
parent a0bf298b66
commit 2a20f78877
10 changed files with 141 additions and 91 deletions
+2 -2
View File
@@ -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
}