Implements attachment uploading
This commit is contained in:
@@ -12,11 +12,12 @@ enum AttachmentState
|
||||
{
|
||||
case staged
|
||||
case uploading(progress: Double)
|
||||
case uploaded
|
||||
case uploaded(String) // fileTransferGUID
|
||||
case failed
|
||||
}
|
||||
|
||||
struct OutgoingAttachment: Identifiable, Hashable
|
||||
@Observable
|
||||
class OutgoingAttachment: Identifiable, Hashable
|
||||
{
|
||||
let id: String
|
||||
let originalURL: URL
|
||||
|
||||
Reference in New Issue
Block a user