fixed some gifs not being loaded as downloaded

-added UIName to separate the gif's slug and title
fixed downloading gifs into emoji container
This commit is contained in:
neon443 committed 2026-04-08 18:51:14 +01:00
1 parent 089adf002e
commit 6096173751
10 files changed
+42 -14

No files matched your search

+10 -2
View File
@@ -10,10 +10,18 @@ import Messages
extension StickerProtocol {
var localImageURLString: String {
let containerPath: String
if type(of: self) == Emoji.self {
containerPath = EmojiHoarder.container.path()
} else if type(of: self) == Gif.self {
containerPath = GifHoarder.container.path()
} else {
fatalError("sticker type unrecogniesd")
}
let urlString = remoteImageURL.absoluteString
let split = urlString.split(separator: ".")
let fileExtension = ".\(split.last ?? "png")"
return EmojiHoarder.container.path()+name+"."+id+fileExtension
let fileExtension = ".\(split.last!)"
return containerPath+name+"."+id+fileExtension
}
var localImageURL: URL {
@@ -11,6 +11,7 @@ import Messages
protocol StickerProtocol: Codable, Identifiable, Hashable {
var id: String { get set }
var name: String { get set }
var UIName: String { get set }
var typeGlyph: String { get }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.