mobile: show unknown content with attached file as file item (for partial forward compatibility with voice and video messages) (#1394)

* mobile: show unknown content with attached file as file item (for partial forward compatibility with voice and video messages)

* fix

* android: show unknown files
This commit is contained in:
Evgeny Poberezkin
2022-11-21 07:42:36 +00:00
committed by GitHub
parent a8b9200c9a
commit 02fa81e8aa
5 changed files with 51 additions and 39 deletions
+2 -2
View File
@@ -1025,9 +1025,9 @@ func processReceivedMsg(_ res: ChatResponse) async {
case let .sndFileComplete(aChatItem, _):
chatItemSimpleUpdate(aChatItem)
let cItem = aChatItem.chatItem
let mc = cItem.content.msgContent
if aChatItem.chatInfo.chatType == .direct,
let mc = cItem.content.msgContent,
mc.isFile(),
case .file = mc,
let fileName = cItem.file?.filePath {
removeFile(fileName)
}