wip
This commit is contained in:
parent
444545b1d8
commit
412500198f
|
@ -117,4 +117,5 @@ unused_declaration:
|
|||
|
||||
# paths to ignore during linting. Takes precedence over `included`.
|
||||
excluded:
|
||||
- SomePathHere
|
||||
- .swiftgen
|
||||
- "**/Generated"
|
||||
|
|
|
@ -25,6 +25,11 @@ final class ClientMartinMessagesManager {
|
|||
#endif
|
||||
|
||||
// Try to recognize if message is omemo-encoded and decode it
|
||||
// if let omemo = OMEMO.decode(message: message, chat: chat) {
|
||||
// // If it is omemo-encoded, save it and return
|
||||
// saveMessage(omemo)
|
||||
// return
|
||||
// }
|
||||
|
||||
if let msg = Message.map(message) {
|
||||
Task {
|
||||
|
|
|
@ -186,10 +186,13 @@ private struct AttachmentView: View {
|
|||
switch type {
|
||||
case .image:
|
||||
return "photo"
|
||||
|
||||
case .audio:
|
||||
return "music.note"
|
||||
|
||||
case .video:
|
||||
return "film"
|
||||
|
||||
case .file:
|
||||
return "doc"
|
||||
}
|
||||
|
|
|
@ -155,6 +155,7 @@ final class FileProcessing {
|
|||
switch type {
|
||||
case .photo:
|
||||
localName = "\(newMessageId)_\(fileId).jpg"
|
||||
|
||||
case .video:
|
||||
localName = "\(newMessageId)_\(fileId).mov"
|
||||
}
|
||||
|
|
|
@ -184,10 +184,13 @@ private struct AttachmentView: View {
|
|||
switch type {
|
||||
case .image:
|
||||
return "photo"
|
||||
|
||||
case .audio:
|
||||
return "music.note"
|
||||
|
||||
case .movie:
|
||||
return "film"
|
||||
|
||||
case .file:
|
||||
return "doc"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue