Fix file deletion
This commit is contained in:
@ -79,6 +79,13 @@ final class LocalizedPost: ObservableObject {
|
||||
}
|
||||
return text.contains(string)
|
||||
}
|
||||
|
||||
func remove(_ file: FileResource) {
|
||||
if images.contains(file) {
|
||||
images.remove(file)
|
||||
}
|
||||
remove(linkPreviewImage: file)
|
||||
}
|
||||
}
|
||||
|
||||
extension LocalizedPost: LinkPreviewItem {
|
||||
|
Reference in New Issue
Block a user