core, ios: don't send/receive XFTP files in NSE (#2202)

This commit is contained in:
spaced4ndy
2023-04-18 19:43:16 +04:00
committed by GitHub
parent e51f7a51cc
commit ddd8e719ef
7 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func apiDeleteUser(_ userId: Int64, _ delSMPQueues: Bool, viewPwd: String?) asyn
}
func apiStartChat() throws -> Bool {
let r = chatSendCmdSync(.startChat(subscribe: true, expire: true))
let r = chatSendCmdSync(.startChat(subscribe: true, expire: true, xftp: true))
switch r {
case .chatStarted: return true
case .chatRunning: return false