diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-01-06 09:33:39 -0800 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-01-06 09:33:51 -0800 |
| commit | 4349f50167f50b30d7cd71854882ab33ac6ea5ea (patch) | |
| tree | b140885499c0097c20d83d2596bc2d624d5fea0d /Hotline/Models/FilePreview.swift | |
| parent | 6189e2d4114f8113898fe65a49fc7bf6b52648ce (diff) | |
Disable fast open on TCP connection. Fix some build issues in iOS build.
Diffstat (limited to 'Hotline/Models/FilePreview.swift')
| -rw-r--r-- | Hotline/Models/FilePreview.swift | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Hotline/Models/FilePreview.swift b/Hotline/Models/FilePreview.swift index a7b183f..3a1d225 100644 --- a/Hotline/Models/FilePreview.swift +++ b/Hotline/Models/FilePreview.swift @@ -66,7 +66,11 @@ final class FilePreview: HotlineFileClientDelegate { let fileExtension = (info.name as NSString).pathExtension if let fileType = UTType(filenameExtension: fileExtension) { if fileType.isSubtype(of: .image) { + #if os(iOS) +// self.image = UIImage(data: data) + #elseif os(macOS) self.image = NSImage(data: data) + #endif } } } |