Skip to content

Commit

Permalink
Show .webp as image in attachment label
Browse files Browse the repository at this point in the history
  • Loading branch information
livid committed Jun 28, 2023
1 parent 9eba961 commit 1e35480
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Planet/Entities/ArticleModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class ArticleModel: ObservableObject, Identifiable, Equatable, Hashable {
let firstAttachment = attachments.first
{
HStack(spacing: 4) {
if [".jpg", ".png", ".gif", ".tiff", ".avif", ".heif"].contains(where: firstAttachment.lowercased().hasSuffix)
if [".jpg", ".png", ".gif", ".tiff", ".avif", ".heif", ".webp"].contains(where: firstAttachment.lowercased().hasSuffix)
{
Text(Image(systemName: "photo"))
.font(.caption)
Expand Down
2 changes: 1 addition & 1 deletion Planet/versioning.xcconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
CURRENT_PROJECT_VERSION = 1443
CURRENT_PROJECT_VERSION = 1444

0 comments on commit 1e35480

Please sign in to comment.