mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-22 11:12:25 +00:00
ui: open file after tap when it is received (#7700)
* ui: open file after tap when it is received * fix ios * simplify * simplify * better --------- Co-authored-by: Evgeny @ SimpleX Chat <259188159+evgeny-simplex@users.noreply.github.com>
This commit is contained in:
1 parent
1bd7c95006
commit
7d870c6ff5
11 files changed
+132
-39
No files matched your search
@@ -2873,6 +2873,9 @@ func processReceivedMsg(_ res: ChatEvent) async {
|
||||
await chatItemSimpleUpdate(user, aChatItem)
|
||||
case let .rcvFileComplete(user, aChatItem):
|
||||
await chatItemSimpleUpdate(user, aChatItem)
|
||||
if active(user), let file = aChatItem.chatItem.file, m.receivedFileToOpen(file) {
|
||||
await MainActor.run { m.openReceivedFile(file) }
|
||||
}
|
||||
case let .rcvFileSndCancelled(user, aChatItem, _):
|
||||
await chatItemSimpleUpdate(user, aChatItem)
|
||||
Task { cleanupFile(aChatItem) }
|
||||
|
||||
Reference in new issue
Block a user