iOS: accept images in NSE if enabled, reorder chats when coming from background (#800)

* ios: automatically accept images in NSE, if enabled in settings

* remove unnecessary TODOs

* reorder chat when coming from background
This commit is contained in:
Evgeny Poberezkin
2022-07-10 14:28:00 +01:00
committed by GitHub
parent 4408495cfb
commit f16d8842b2
8 changed files with 62 additions and 21 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ func receiveFile(fileId: Int64) async {
func apiReceiveFile(fileId: Int64) async throws -> AChatItem {
let r = await chatSendCmd(.receiveFile(fileId: fileId))
if case .rcvFileAccepted(let chatItem) = r { return chatItem }
if case let .rcvFileAccepted(chatItem) = r { return chatItem }
throw r
}